[Erp5-report] r39040 yusei - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 12 04:07:22 CEST 2010


Author: yusei
Date: Tue Oct 12 04:07:21 2010
New Revision: 39040

URL: http://svn.erp5.org?rev=39040&view=rev
Log:
Fix a name error. portal_type was unbound.

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

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=39040&r1=39039&r2=39040&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Tue Oct 12 04:07:21 2010
@@ -2781,7 +2781,8 @@ class Base( CopyContainer,
     """
     if context is None:
       pt = self._getTypesTool()
-      type_info = pt.getTypeInfo(self.getPortalType())
+      portal_type = self.getPortalType()
+      type_info = pt.getTypeInfo(portal_type)
       if type_info is None:
         raise ValueError('No such content type: %s' % portal_type)
 




More information about the Erp5-report mailing list