diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py index 4b749c49f649f2b73dda1a2d300f8a1f837cc11f..1f52fb1ca01d035f2313625995355c17e3a2cf3d 100755 --- a/product/ERP5/Document/Document.py +++ b/product/ERP5/Document/Document.py @@ -30,8 +30,9 @@ from AccessControl import ClassSecurityInfo from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface from Products.ERP5Type.XMLObject import XMLObject +from Products.ERP5Type.WebDAVSupport import TextContent -class Document(XMLObject): +class Document(XMLObject, TextContent): """ A Document can contain text that can be formatted using *Structured Text* or *HTML*. Text can be automatically translated @@ -42,6 +43,15 @@ class Document(XMLObject): Document inherits from XMLObject and can be synchronized accross multiple sites. + + Version Management: the notion of version depends on the + type of application. For example, in the case (1) of Transformation + (BOM), all versions are considered as equal and may be kept + indefinitely for both archive and usage purpose. In the case (2) + of Person data, the new version replaces the previous one + in place and is not needed for archive. In the case (3) of + a web page, the new version replaces the previous one, + the previous one being kept in place for archive. """ meta_type = 'ERP5 Document' @@ -65,3 +75,5 @@ class Document(XMLObject): # Declarative interfaces __implements__ = () + # Patch + PUT = TextContent.PUT \ No newline at end of file diff --git a/product/ERP5/Document/File.py b/product/ERP5/Document/File.py index b95919fcdc968c1fac5beaa40294830c0808f23b..337ca36e9a123cadcc9dcf2bdf4c385e9a0fb6ed 100755 --- a/product/ERP5/Document/File.py +++ b/product/ERP5/Document/File.py @@ -151,3 +151,10 @@ or 'HTML'. Text can be automatically translated through the use of\ def manage_beforeDelete(self, item, container): CMFFile.manage_beforeDelete(self, item, container) + + # DAV Support + PUT = CMFFile.PUT + manage_FTPget = CMFFile.manage_FTPget + manage_FTPlist = CMFFile.manage_FTPlist + manage_FTPstat = CMFFile.manage_FTPstat + diff --git a/product/ERP5/Document/Image.py b/product/ERP5/Document/Image.py index 47a2affc94e98b7b85a75af21066918f6d4af075..8b2cabec6bbfb0a5729be5cf192d4f3d02e11eb3 100755 --- a/product/ERP5/Document/Image.py +++ b/product/ERP5/Document/Image.py @@ -63,7 +63,7 @@ class Image (Base, CMFPhoto): , PropertySheet.DublinCore ) - def __init__( self, id, title='', file='', store='ExtImage' + def __init__( self, id, title='', file='', store='Image' , engine='ImageMagick', quality=75, pregen=0, timeout=0): Photo.__init__(self, id=id, title=title, file=file, store=store , engine=engine, quality=quality, pregen=pregen, timeout=timeout)