Commit 88959d0b authored by Vincent Pelletier's avatar Vincent Pelletier

Make install_kw defaut to None because of a bad behaviour of...

Make install_kw defaut to None because of a bad behaviour of BusinessTemplate._install: if object_to_update is not None, force is set to 0, so no objects are installed at all.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19381 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 246dbac3
...@@ -666,7 +666,7 @@ def setupERP5Site( business_template_list=(), ...@@ -666,7 +666,7 @@ def setupERP5Site( business_template_list=(),
bt = portal.portal_templates.download(url) bt = portal.portal_templates.download(url)
if not quiet: if not quiet:
ZopeTestCase._print('(downloaded in %.3fs) ' % (time.time() - start)) ZopeTestCase._print('(downloaded in %.3fs) ' % (time.time() - start))
install_kw = {} install_kw = None
if get_install_kw: if get_install_kw:
listbox_object_list = BusinessTemplate_getModifiedObject.__of__(bt)() listbox_object_list = BusinessTemplate_getModifiedObject.__of__(bt)()
for listbox_line in listbox_object_list: for listbox_line in listbox_object_list:
......
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