[Erp5-report] r13961 - /erp5/trunk/products/ERP5Type/Core/Folder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 5 09:58:58 CEST 2007


Author: aurel
Date: Thu Apr  5 09:58:57 2007
New Revision: 13961

URL: http://svn.erp5.org?rev=13961&view=rev
Log:
use getPhysicalPath in order to avoid confusion if an id contains portal_trash in it

Modified:
    erp5/trunk/products/ERP5Type/Core/Folder.py

Modified: erp5/trunk/products/ERP5Type/Core/Folder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Core/Folder.py?rev=13961&r1=13960&r2=13961&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Core/Folder.py (original)
+++ erp5/trunk/products/ERP5Type/Core/Folder.py Thu Apr  5 09:58:57 2007
@@ -105,7 +105,7 @@
     myType = pt.getTypeInfo(container)
     if myType is not None:
       if not myType.allowType( portal_type ):
-        if not 'portal_trash' in container.getPath():
+        if not 'portal_trash' in container.getPhysicalPath():
           raise ValueError('Disallowed subobject type: %s' % portal_type)
 
     pt.constructContent( type_name=portal_type,




More information about the Erp5-report mailing list