[Erp5-report] r17156 - /erp5/trunk/products/ERP5Type/WebDAVSupport.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 24 09:45:08 CEST 2007


Author: jerome
Date: Wed Oct 24 09:45:08 2007
New Revision: 17156

URL: http://svn.erp5.org?rev=17156&view=rev
Log:
Allow to PUT anything inside portal_contribution. Don't check for portal_trash here, I guess nobody uses webdav in portal_trash.


Modified:
    erp5/trunk/products/ERP5Type/WebDAVSupport.py

Modified: erp5/trunk/products/ERP5Type/WebDAVSupport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/WebDAVSupport.py?rev=17156&r1=17155&r2=17156&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/WebDAVSupport.py (original)
+++ erp5/trunk/products/ERP5Type/WebDAVSupport.py Wed Oct 24 09:45:08 2007
@@ -218,13 +218,13 @@
     pt = self._getTypesTool()
     myType = pt.getTypeInfo(self)
     if myType is not None and not myType.allowType( portal_type ) and \
-       'portal_trash' not in self.getPhysicalPath():
+       'portal_contributions' not in self.getPhysicalPath():
       raise ValueError('Disallowed subobject type: %s' % portal_type)
     pt.constructContent( type_name=portal_type,
                          container=self,
                          id=name,
                          is_indexable=0
-                         ) # **kw) removed due to CMF bug
+                         )
 
     # constructContent does too much, so the object has to be removed again
     obj = aq_base( self._getOb( name ) )




More information about the Erp5-report mailing list