Commit d8c2cdeb authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

support a business template whose revision is still empty.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfe80482
......@@ -67,7 +67,7 @@ for bt in bt_list:\n
if len([x for x in bt_list \\\n
if x.getTitle() == bt.getTitle() and \\\n
x.getInstallationState() == \'installed\' and \\\n
int(x.getRevision() or \'0\') > int(bt.getRevision())]):\n
int(x.getRevision() or \'0\') > int(bt.getRevision() or \'0\')]):\n
delete_list.append(bt_id)\n
\n
print \'Deleted id list:%r\' % delete_list\n
......
60
\ No newline at end of file
61
\ No newline at end of file
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