Commit 4c8c61b9 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix conditional, verbose a bit more.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44321 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 83c874b3
...@@ -63,6 +63,7 @@ def updateERP5(args): ...@@ -63,6 +63,7 @@ def updateERP5(args):
if erp5_site_created and not business_template_setup_finished: if erp5_site_created and not business_template_setup_finished:
if proxy.isERP5SitePresent() == True: if proxy.isERP5SitePresent() == True:
print "Start to set initial business template setup."
# Update URL to ERP5 Site # Update URL to ERP5 Site
erp5 = xmlrpclib.ServerProxy("%s/%s" % (base_url, site_id), erp5 = xmlrpclib.ServerProxy("%s/%s" % (base_url, site_id),
allow_none=1) allow_none=1)
...@@ -83,7 +84,7 @@ def updateERP5(args): ...@@ -83,7 +84,7 @@ def updateERP5(args):
repository_set = set(erp5.portal_templates.getRepositoryList()) repository_set = set(erp5.portal_templates.getRepositoryList())
installed_bt5_list = erp5.portal_templates.getInstalledBusinessTemplateTitleList() installed_bt5_list = erp5.portal_templates.getInstalledBusinessTemplateTitleList()
if (set(repository_set) == set(bt5_repository_list)) and \ if (set(repository_set) == set(bt5_repository_list)) and \
len([i for i in bt5_list not in installed_bt5_list]): len([i for i in bt5_list if i not in installed_bt5_list]) == 0:
print "Repositories updated and business templates installed." print "Repositories updated and business templates installed."
business_template_setup_finished = 1 business_template_setup_finished = 1
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