Commit 58e4ad7a authored by Julien Muchembled's avatar Julien Muchembled

Id Tool: fix comparison of 'erp5_core' versions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36287 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b852cd5d
...@@ -139,7 +139,7 @@ class IdTool(BaseTool): ...@@ -139,7 +139,7 @@ class IdTool(BaseTool):
template_tool = getattr(self, 'portal_templates', None) template_tool = getattr(self, 'portal_templates', None)
revision = template_tool.getInstalledBusinessTemplateRevision('erp5_core') revision = template_tool.getInstalledBusinessTemplateRevision('erp5_core')
# XXX backward compatiblity # XXX backward compatiblity
if revision > '1561': if int(revision) > 1561:
LOG('generateNewId', ERROR, 'while generating id') LOG('generateNewId', ERROR, 'while generating id')
raise raise
else: else:
...@@ -200,7 +200,7 @@ class IdTool(BaseTool): ...@@ -200,7 +200,7 @@ class IdTool(BaseTool):
template_tool = getattr(self, 'portal_templates', None) template_tool = getattr(self, 'portal_templates', None)
revision = template_tool.getInstalledBusinessTemplateRevision('erp5_core') revision = template_tool.getInstalledBusinessTemplateRevision('erp5_core')
# XXX backward compatiblity # XXX backward compatiblity
if revision > '1561': if int(revision) > 1561:
LOG('generateNewIdList', ERROR, 'while generating id') LOG('generateNewIdList', ERROR, 'while generating id')
raise raise
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment