[Erp5-report] r45688 nicolas - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 26 16:41:07 CEST 2011


Author: nicolas
Date: Tue Apr 26 16:41:07 2011
New Revision: 45688

URL: http://svn.erp5.org?rev=45688&view=rev
Log:
It helps to display extra spaces in filled in values

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=45688&r1=45687&r2=45688&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Tue Apr 26 16:41:07 2011
@@ -2237,7 +2237,7 @@ class PortalTypeAllowedContentTypeTempla
       ob = types_tool.getTypeInfo(portal_type)
       # check properties corresponds to what is defined in site
       if ob is None:
-        raise ValueError, "Portal Type %s not found in site" %(portal_type,)
+        raise ValueError, "Portal Type %r not found in site" %(portal_type,)
       prop_value = getattr(ob, self.class_property, ())
       if allowed_type in prop_value:
         if self.class_property not in portal_type:



More information about the Erp5-report mailing list