Commit b99d872c authored by Jean-Paul Smets's avatar Jean-Paul Smets

Support for WebDAV was fixed or added


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4488 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 464e38ac
......@@ -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
......@@ -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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment