Commit 4fcbd776 authored by Jérome Perrin's avatar Jérome Perrin

Allow to PUT anything inside portal_contribution. Don't check for portal_trash...

Allow to PUT anything inside portal_contribution. Don't check for portal_trash here, I guess nobody uses webdav in portal_trash.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17156 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48c20cac
......@@ -218,13 +218,13 @@ class Folder:
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 ) )
......
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