[Erp5-report] r36287 jm - /erp5/trunk/products/ERP5/Tool/IdTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Jun 12 18:48:54 CEST 2010
Author: jm
Date: Sat Jun 12 18:48:54 2010
New Revision: 36287
URL: http://svn.erp5.org?rev=36287&view=rev
Log:
Id Tool: fix comparison of 'erp5_core' versions
Modified:
erp5/trunk/products/ERP5/Tool/IdTool.py
Modified: erp5/trunk/products/ERP5/Tool/IdTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/IdTool.py?rev=36287&r1=36286&r2=36287&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/IdTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/IdTool.py [utf8] Sat Jun 12 18:48:54 2010
@@ -139,7 +139,7 @@ class IdTool(BaseTool):
template_tool = getattr(self, 'portal_templates', None)
revision = template_tool.getInstalledBusinessTemplateRevision('erp5_core')
# XXX backward compatiblity
- if revision > '1561':
+ if int(revision) > 1561:
LOG('generateNewId', ERROR, 'while generating id')
raise
else:
@@ -200,7 +200,7 @@ class IdTool(BaseTool):
template_tool = getattr(self, 'portal_templates', None)
revision = template_tool.getInstalledBusinessTemplateRevision('erp5_core')
# XXX backward compatiblity
- if revision > '1561':
+ if int(revision) > 1561:
LOG('generateNewIdList', ERROR, 'while generating id')
raise
else:
More information about the Erp5-report
mailing list