[Erp5-report] r17277 - /erp5/trunk/products/ERP5/Tool/TemplateTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 30 03:09:51 CET 2007


Author: yo
Date: Tue Oct 30 03:09:51 2007
New Revision: 17277

URL: http://svn.erp5.org?rev=17277&view=rev
Log:
Revisions should be compared as int.

Modified:
    erp5/trunk/products/ERP5/Tool/TemplateTool.py

Modified: erp5/trunk/products/ERP5/Tool/TemplateTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TemplateTool.py?rev=17277&r1=17276&r2=17277&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py Tue Oct 30 03:09:51 2007
@@ -791,7 +791,7 @@
               elif diff_version == 0 \
                    and previous_property_dict['revision'] \
                    and property_dict['revision'] \
-                   and previous_property_dict['revision'] < property_dict['revision']:
+                   and int(previous_property_dict['revision']) < int(property_dict['revision']):
                       template_item_dict[title] = (repository, property_dict)
         # Next, select only updated business templates.
         for repository, property_dict in template_item_dict.values():




More information about the Erp5-report mailing list