[Erp5-report] r32304 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 8 06:36:44 CET 2010


Author: nicolas.dumazet
Date: Mon Feb  8 06:36:42 2010
New Revision: 32304

URL: http://svn.erp5.org?rev=32304&view=rev
Log:
avoid extra spaces in Error strings; add two linebreaks for readability

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

Modified: erp5/trunk/products/ERP5/Document/TransformedResource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TransformedResource.py?rev=32304&r1=32303&r2=32304&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TransformedResource.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TransformedResource.py [utf8] Mon Feb  8 06:36:42 2010
@@ -279,15 +279,15 @@
                   quantity_defined_by = mapped_value.getRelativeUrl()
           if quantity in [None,'']:
             raise KeyError, \
-                  "No cell quantity matching on TransformedResource '%s' for \
-                   current context" % ( self.getRelativeUrl() ,   )
+                  "No cell quantity matching on TransformedResource '%s' for "\
+                  "current context" % ( self.getRelativeUrl() ,   )
         else:
           quantity = self.getQuantity()
           quantity_defined_by = self.getRelativeUrl()
         if quantity in [None,'']:
           raise KeyError, \
-                "No quantity defined on TransformedResource '%s' for \
-                 current context" % (self.getRelativeUrl(), )
+                "No quantity defined on TransformedResource '%s' for "\
+                "current context" % (self.getRelativeUrl(), )
         # If we have to do this, then there is a problem....
         # We'd better have better API for this, 
         # like an update function in the mapped_value
@@ -295,6 +295,8 @@
           quantity = float(quantity)
         except ValueError:
           error_string += 'Quantity is not a float.'
+
+
         # Get the variation category list
         variation_category_list_defined_by = None
         variation_category_list = None
@@ -319,8 +321,8 @@
               return aggregated_amount_list
             else:
               raise KeyError, \
-                    "No cell variation matching on TransformedResource '%s' \
-                     for current context" % (self.getRelativeUrl(), )
+                    "No cell variation matching on TransformedResource '%s' "\
+                    "for current context" % (self.getRelativeUrl(), )
         else:
           variation_category_list = self._getVariationCategoryList()
           variation_category_list_defined_by = self.getRelativeUrl()




More information about the Erp5-report mailing list