Commit 8ba18832 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

2011-03-10 Kazuhiko

* by default, all installed business templates will be upgraded, not all existing business templates in the repository.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44145 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04dd54a6
...@@ -69,8 +69,8 @@ available_bt5_list = portal_templates.getRepositoryBusinessTemplateList(newest_o ...@@ -69,8 +69,8 @@ available_bt5_list = portal_templates.getRepositoryBusinessTemplateList(newest_o
available_bt5_id_list = [x.title for x in available_bt5_list]\n available_bt5_id_list = [x.title for x in available_bt5_list]\n
required_bt5_id_list = signature.get(\'required_bt5_id_list\', [])\n required_bt5_id_list = signature.get(\'required_bt5_id_list\', [])\n
if len(required_bt5_id_list) == 0:\n if len(required_bt5_id_list) == 0:\n
# by default, we try to upgrade all business templates from repositories.\n # by default, we try to upgrade all installed business templates.\n
required_bt5_id_list = [i.title for i in available_bt5_list]\n required_bt5_id_list = portal_templates.getInstalledBusinessTemplateTitleList()\n
upgradable_bt5_id_list = signature.get(\'upgradable_bt5_id_list\', [])\n upgradable_bt5_id_list = signature.get(\'upgradable_bt5_id_list\', [])\n
reinstallable_bt5_id_list = signature.get(\'reinstallable_bt5_id_list\', signature.get(\'reinstalable_bt5_id_list\', []))\n reinstallable_bt5_id_list = signature.get(\'reinstallable_bt5_id_list\', signature.get(\'reinstalable_bt5_id_list\', []))\n
before_triggered_bt5_id_dict = signature.get(\'before_triggered_bt5_id_dict\', {})\n before_triggered_bt5_id_dict = signature.get(\'before_triggered_bt5_id_dict\', {})\n
...@@ -113,7 +113,7 @@ def installBT5(bt5_url, bt5_title, previous_bt5, bt5_counter, force=False):\n ...@@ -113,7 +113,7 @@ def installBT5(bt5_url, bt5_title, previous_bt5, bt5_counter, force=False):\n
reinstall=force)\n reinstall=force)\n
previous_bt5_id = bt5_id\n previous_bt5_id = bt5_id\n
bt5_counter += 1\n bt5_counter += 1\n
message_list.append("\\tInstall %s from %s" % (bt5_title, bt5_url))\n message_list.append("%s will be installed" % bt5_url)\n
return bt5_id\n return bt5_id\n
\n \n
previous_bt5 = None\n previous_bt5 = None\n
...@@ -139,8 +139,6 @@ for repository, bt5_id in bt5_list:\n ...@@ -139,8 +139,6 @@ for repository, bt5_id in bt5_list:\n
bt5_id = installBT5(bt5_url, bt5_title, previous_bt5, bt5_counter)\n bt5_id = installBT5(bt5_url, bt5_title, previous_bt5, bt5_counter)\n
previous_bt5 = bt5_id\n previous_bt5 = bt5_id\n
\n \n
message_list.append("Business templates will be installed using activities.")\n
\n
return message_list\n return message_list\n
......
2011-03-10 Kazuhiko
* by default, all installed business templates will be upgraded, not all existing business templates in the repository.
2011-02-10 Kazuhiko 2011-02-10 Kazuhiko
* support 'update_security_workflow_id_list' in upgrade signature. * support 'update_security_workflow_id_list' in upgrade signature.
......
583 584
\ No newline at end of file \ 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