From 4fcbd776381a9befead6e75b5e3ba552fd0b4611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 24 Oct 2007 07:45:08 +0000 Subject: [PATCH] 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 --- product/ERP5Type/WebDAVSupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/WebDAVSupport.py b/product/ERP5Type/WebDAVSupport.py index 62608352db..7b465ad378 100644 --- a/product/ERP5Type/WebDAVSupport.py +++ b/product/ERP5Type/WebDAVSupport.py @@ -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 ) ) -- 2.30.9