[Erp5-report] r35032 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/Delivery.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 6 04:36:18 CEST 2010


Author: nicolas.dumazet
Date: Thu May  6 04:36:16 2010
New Revision: 35032

URL: http://svn.erp5.org?rev=35032&view=rev
Log:
Render correct method name in error message if portal type contains spaces

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

Modified: erp5/trunk/products/ERP5/Document/Delivery.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Delivery.py?rev=35032&r1=35031&r2=35032&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Delivery.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Delivery.py [utf8] Thu May  6 04:36:16 2010
@@ -904,7 +904,7 @@
         return method()
       else:
         raise 'SimulationError', '%s_getRuleReference script is missing.' \
-              % self.getPortalType()
+              % self.getPortalType().replace(' ', '')
 
     security.declareProtected( Permissions.AccessContentsInformation,
                                'getRootSpecialiseValue')




More information about the Erp5-report mailing list