[Erp5-report] r12193 - in /erp5/trunk/products/ERP5/Document: File.py Image.py WebSection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 22 13:35:01 CET 2007
Author: jp
Date: Mon Jan 22 13:34:59 2007
New Revision: 12193
URL: http://svn.erp5.org?rev=12193&view=rev
Log:
Minor fixes.
Modified:
erp5/trunk/products/ERP5/Document/File.py
erp5/trunk/products/ERP5/Document/Image.py
erp5/trunk/products/ERP5/Document/WebSection.py
Modified: erp5/trunk/products/ERP5/Document/File.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?rev=12193&r1=12192&r2=12193&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py (original)
+++ erp5/trunk/products/ERP5/Document/File.py Mon Jan 22 13:34:59 2007
@@ -34,6 +34,7 @@
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.Cache import CachingMethod
from Products.ERP5.Document.Document import Document
+from Products.ERP5.Document.Document import ConversionCacheMixin
from Products.ERP5Type.Base import Base
from Products.CMFDefault.File import File as CMFFile
from zLOG import LOG
@@ -53,7 +54,7 @@
return txt
-class File(Document, CMFFile):
+class File(Document, CMFFile, ConversionCacheMixin):
"""
A File can contain raw data which can be uploaded and downloaded.
It is the root class of Image, OOoDocument (ERP5OOo product),
Modified: erp5/trunk/products/ERP5/Document/Image.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Image.py?rev=12193&r1=12192&r2=12193&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Image.py (original)
+++ erp5/trunk/products/ERP5/Document/Image.py Mon Jan 22 13:34:59 2007
@@ -35,7 +35,6 @@
from Products.CMFCore.WorkflowCore import WorkflowMethod
from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5.Document.File import File
-from Products.ERP5.Document.Document import ConversionCacheMixin
from OFS.Image import Image as OFSImage
from OFS.Image import getImageInfo
from OFS.content_types import guess_content_type
@@ -55,7 +54,7 @@
default_formats = ['jpg', 'jpeg', 'png', 'gif', 'pnm', 'ppm']
-class Image(File, OFSImage, ConversionCacheMixin):
+class Image(File, OFSImage):
"""
An Image is a File which contains image data. It supports
various conversions of format, size, resolution through
Modified: erp5/trunk/products/ERP5/Document/WebSection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/WebSection.py?rev=12193&r1=12192&r2=12193&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py Mon Jan 22 13:34:59 2007
@@ -52,6 +52,7 @@
CACHE_KEY = 'web_site_aq_cache'
DOCUMENT_NAME_KEY = 'web_section_document_name'
reserved_name_dict = { 'getApplicableLayout' : 1,
+ 'isWebMode' : 1,
'getLayout' : 1,
'Localizer' : 1,
'field_render' : 1,
More information about the Erp5-report
mailing list