Commit 004d923c authored by Rafael Monnerat's avatar Rafael Monnerat

Remove useless code and update API (service_list to configuration_list)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45019 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dcdd3d15
...@@ -52,16 +52,12 @@ ...@@ -52,16 +52,12 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
# XXX-Luke: Beware, I will modify this script *very* much\n
portal = context.getPortalObject()\n
\n
configuration_save_url = kw.get(\'configuration_save_url\', None)\n configuration_save_url = kw.get(\'configuration_save_url\', None)\n
preferred_event_sender_email = kw.get(\'preferred_event_sender_email\', \'\')\n preferred_event_sender_email = kw.get(\'preferred_event_sender_email\', \'\')\n
preferred_date_order = kw.get(\'preferred_date_order\', None)\n preferred_date_order = kw.get(\'preferred_date_order\', None)\n
preferred_language_list = kw.get(\'lang\', [])\n preferred_language_list = kw.get(\'lang\', [])\n
\n \n
configuration_save = context.restrictedTraverse(configuration_save_url)\n configuration_save = context.restrictedTraverse(configuration_save_url)\n
business_configuration = configuration_save.getParent()\n
\n \n
# if preferred email is not specified used previously saved company email.\n # if preferred email is not specified used previously saved company email.\n
company_email = context.getGlobalConfigurationAttr(\'company_email\')\n company_email = context.getGlobalConfigurationAttr(\'company_email\')\n
...@@ -122,7 +118,7 @@ service_list = (\n ...@@ -122,7 +118,7 @@ service_list = (\n
(\'event_other\', \'Other event\'),\n (\'event_other\', \'Other event\'),\n
)\n )\n
configuration_save.addConfigurationItem("Service Configurator Item",\n configuration_save.addConfigurationItem("Service Configurator Item",\n
service_list=service_list)\n configuration_list=service_list)\n
\n \n
# configure preferences\n # configure preferences\n
prefs = dict(\n prefs = dict(\n
...@@ -215,11 +211,7 @@ system_prefs = dict(\n ...@@ -215,11 +211,7 @@ system_prefs = dict(\n
preferred_client_role_list = [\'client\'],\n preferred_client_role_list = [\'client\'],\n
preferred_sale_use_list = [\'trade/sale\'],\n preferred_sale_use_list = [\'trade/sale\'],\n
preferred_purchase_use_list = [\'trade/purchase\'],\n preferred_purchase_use_list = [\'trade/purchase\'],\n
preferred_packing_use_list = [\'trade/container\'],\n preferred_packing_use_list = [\'trade/container\'])\n
# Express preferences\n
preferred_express_subscription_status = 1,\n
preferred_express_configuration_status = 1,\n
preferred_express_after_setup_script_id = \'ERP5Generator_afterSetup\')\n
\n \n
configuration_save.addConfigurationItem(\n configuration_save.addConfigurationItem(\n
\'System Preference Configurator Item\',\n \'System Preference Configurator Item\',\n
...@@ -229,7 +221,6 @@ configuration_save.addConfigurationItem(\n ...@@ -229,7 +221,6 @@ configuration_save.addConfigurationItem(\n
title="Default Configurator System Site Preference",\n title="Default Configurator System Site Preference",\n
**system_prefs)\n **system_prefs)\n
\n \n
\n
# preferred_languages\n # preferred_languages\n
for bt5_id in preferred_language_list:\n for bt5_id in preferred_language_list:\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
......
596 597
\ 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