Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
wendelin
Commits
fd94feda
Commit
fd94feda
authored
Apr 05, 2016
by
Douglas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_configurator: bt5 migrated to new format
parent
237cc8b3
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
94 additions
and
120 deletions
+94
-120
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.py
...delin/BusinessConfiguration_afterWendelinConfiguration.py
+5
-0
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.xml
...elin/BusinessConfiguration_afterWendelinConfiguration.xml
+0
-9
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinCategories.py
...elin/BusinessConfiguration_configureWendelinCategories.py
+17
-0
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinCategories.xml
...lin/BusinessConfiguration_configureWendelinCategories.xml
+0
-21
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinOrganisation.py
...in/BusinessConfiguration_configureWendelinOrganisation.py
+27
-0
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinOrganisation.xml
...n/BusinessConfiguration_configureWendelinOrganisation.xml
+0
-35
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_getPrettyCategoriesSpreadsheetConfiguratorItem.py
...uration_getPrettyCategoriesSpreadsheetConfiguratorItem.py
+3
-0
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_getPrettyCategoriesSpreadsheetConfiguratorItem.xml
...ration_getPrettyCategoriesSpreadsheetConfiguratorItem.xml
+0
-7
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_setupWendelinStandardBT5.py
...endelin/BusinessConfiguration_setupWendelinStandardBT5.py
+42
-0
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_setupWendelinStandardBT5.xml
...ndelin/BusinessConfiguration_setupWendelinStandardBT5.xml
+0
-48
No files found.
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.py
0 → 100644
View file @
fd94feda
"""
This script will be called to apply the customization.
"""
# Ivan: we simply do nothing for now
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_afterWendelinConfiguration.xml
View file @
fd94feda
...
...
@@ -48,15 +48,6 @@
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
""" \n
This script will be called to apply the customization. \n
"""\n
\n
# Ivan: we simply do nothing for now\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
alter_preferences=True
</string>
</value>
...
...
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinCategories.py
0 → 100644
View file @
fd94feda
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
context
.
setGlobalConfigurationAttr
(
categories_spreadsheet_configuration_save_relative_url
=
configuration_save
.
getRelativeUrl
())
configuration_save
.
addConfigurationItem
(
"Categories Spreadsheet Configurator Item"
,
configuration_spreadsheet_file
=
configuration_spreadsheet
)
# l10n
user_preferred_language
=
kw
.
get
(
'user_preferred_language'
)
if
user_preferred_language
not
in
(
'en'
,
None
):
# english is default lang anyway
bt5_name
=
'erp5_l10n_%s'
%
user_preferred_language
configuration_save
.
addConfigurationItem
(
"Standard BT5 Configurator Item"
,
title
=
bt5_name
,
bt5_id
=
bt5_name
,
update_catalog
=
False
,
install_dependency
=
True
)
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinCategories.xml
View file @
fd94feda
...
...
@@ -48,27 +48,6 @@
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
configuration_save = context.restrictedTraverse(configuration_save_url)\n
\n
context.setGlobalConfigurationAttr(\n
categories_spreadsheet_configuration_save_relative_url=configuration_save.getRelativeUrl())\n
\n
configuration_save.addConfigurationItem("Categories Spreadsheet Configurator Item",\n
configuration_spreadsheet_file=configuration_spreadsheet)\n
# l10n\n
user_preferred_language = kw.get(\'user_preferred_language\')\n
if user_preferred_language not in (\'en\', None):\n
# english is default lang anyway\n
bt5_name = \'erp5_l10n_%s\' %user_preferred_language\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
title=bt5_name, \n
bt5_id=bt5_name,\n
update_catalog=False,\n
install_dependency=True)\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
configuration_save_url, configuration_spreadsheet, **kw
</string>
</value>
...
...
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinOrganisation.py
0 → 100644
View file @
fd94feda
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
company_email
=
kw
[
'default_email_text'
]
group
=
kw
[
'group'
]
organisation_configurator_item
=
configuration_save
.
addConfigurationItem
(
"Organisation Configurator Item"
,
**
kw
)
# store globally preferred group
context
.
setGlobalConfigurationAttr
(
group_id
=
group
)
# store globally company's email
context
.
setGlobalConfigurationAttr
(
company_email
=
company_email
)
# store globally company's configurator item which we can use later to reconfigure
context
.
setGlobalConfigurationAttr
(
organisation_configurator_item
=
organisation_configurator_item
.
getRelativeUrl
())
# price currency contains all currency info like iso code& precision ';' separated
currency_info_list
=
kw
[
'price_currency_list'
]
for
currency_info
in
currency_info_list
:
currency_reference
,
currency_base_unit_quantity
,
currency_title
=
\
currency_info
.
split
(
';'
)
configuration_save
.
addConfigurationItem
(
"Currency Configurator Item"
,
reference
=
currency_reference
,
base_unit_quantity
=
currency_base_unit_quantity
,
title
=
currency_title
,)
context
.
setGlobalConfigurationAttr
(
default_currency
=
currency_reference
)
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_configureWendelinOrganisation.xml
View file @
fd94feda
...
...
@@ -48,41 +48,6 @@
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
configuration_save = context.restrictedTraverse(configuration_save_url)\n
company_email = kw[\'default_email_text\']\n
group = kw[\'group\']\n
\n
organisation_configurator_item = configuration_save.addConfigurationItem(\n
"Organisation Configurator Item", **kw)\n
\n
# store globally preferred group\n
context.setGlobalConfigurationAttr(group_id=group)\n
\n
# store globally company\'s email\n
context.setGlobalConfigurationAttr(company_email=company_email)\n
\n
# store globally company\'s configurator item which we can use later to reconfigure\n
context.setGlobalConfigurationAttr(organisation_configurator_item=organisation_configurator_item.getRelativeUrl())\n
\n
# price currency contains all currency info like iso code& precision \';\' separated\n
currency_info_list = kw[\'price_currency_list\']\n
for currency_info in currency_info_list:\n
currency_reference, currency_base_unit_quantity, currency_title = \\\n
currency_info.split(\';\')\n
configuration_save.addConfigurationItem(\n
"Currency Configurator Item",\n
reference = currency_reference,\n
base_unit_quantity = currency_base_unit_quantity,\n
title = currency_title,)\n
context.setGlobalConfigurationAttr(default_currency=currency_reference)\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
configuration_save_url=None, **kw
</string>
</value>
...
...
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_getPrettyCategoriesSpreadsheetConfiguratorItem.py
0 → 100644
View file @
fd94feda
l
=
context
.
BusinessConfiguration_getCategoriesSpreadsheetConfiguratorItem
().
getCategoryTitleItemList
(
category_id
)
l
.
sort
()
return
l
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_getPrettyCategoriesSpreadsheetConfiguratorItem.xml
View file @
fd94feda
...
...
@@ -48,13 +48,6 @@
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
l = context.BusinessConfiguration_getCategoriesSpreadsheetConfiguratorItem().getCategoryTitleItemList(category_id)\n
l.sort()\n
return l\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
category_id
</string>
</value>
...
...
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_setupWendelinStandardBT5.py
0 → 100644
View file @
fd94feda
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
bt5_installation_list
=
(
'erp5_full_text_mroonga_catalog'
,
'erp5_base'
,
'erp5_jquery_ui'
,
'erp5_ingestion_mysql_innodb_catalog'
,
'erp5_ingestion'
,
'erp5_stock_cache'
,
'erp5_web'
,
'erp5_dms'
,
'erp5_pdm'
,
'erp5_knowledge_pad'
,
'erp5_trade'
,
'erp5_project'
,
'erp5_simulation'
,
'erp5_ods_style'
,
'erp5_odt_style'
,
'erp5_rss_style'
,
'erp5_trade'
,
# to develop faster
'erp5_ace_editor'
,
'erp5_forge'
,
'erp5_development_wizard'
,
'erp5_dhtml_style'
,
# install later UI bt5s as broken now
#'erp5_wendelin_renderjs_ui',
'erp5_hal_json_style'
,
'erp5_web_renderjs_ui'
,
'erp5_wendelin'
,
'erp5_wendelin_examples'
,
'erp5_wendelin_data'
,
'erp5_wendelin_development'
)
bt5_update_catalog
=
(
'erp5_ingestion_mysql_innodb_catalog'
,)
for
name
in
bt5_installation_list
:
configuration_save
.
addConfigurationItem
(
"Standard BT5 Configurator Item"
,
title
=
name
,
bt5_id
=
name
,
update_catalog
=
(
name
in
bt5_update_catalog
),
install_dependency
=
True
,
)
bt5/erp5_wendelin_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wendelin/BusinessConfiguration_setupWendelinStandardBT5.xml
View file @
fd94feda
...
...
@@ -48,54 +48,6 @@
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
configuration_save = context.restrictedTraverse(configuration_save_url)\n
\n
bt5_installation_list = (\'erp5_full_text_mroonga_catalog\',\n
\'erp5_base\',\n
\'erp5_jquery_ui\',\n
\'erp5_ingestion_mysql_innodb_catalog\',\n
\'erp5_ingestion\',\n
\'erp5_stock_cache\',\n
\'erp5_knowledge_pad\', # it must be before erp5_web\n
\'erp5_web\',\n
\'erp5_dms\',\n
\'erp5_pdm\',\n
\'erp5_trade\',\n
\'erp5_project\',\n
\'erp5_simulation\',\n
\'erp5_ods_style\',\n
\'erp5_odt_style\',\n
\'erp5_rss_style\',\n
\'erp5_trade\',\n
# jupiter notebook integration\n
\'erp5_data_notebook\',\n
# to develop faster\n
\'erp5_ace_editor\',\n
\'erp5_forge\',\n
\'erp5_development_wizard\',\n
\'erp5_dhtml_style\',\n
# install later UI bt5s as broken now\n
#\'erp5_wendelin_renderjs_ui\',\n
\'erp5_hal_json_style\',\n
\'erp5_web_renderjs_ui\',\n
\'erp5_wendelin\',\n
\'erp5_wendelin_examples\',\n
\'erp5_wendelin_data\',\n
\'erp5_wendelin_development\'\n
)\n
\n
bt5_update_catalog = (\'erp5_ingestion_mysql_innodb_catalog\',)\n
\n
for name in bt5_installation_list:\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
title=name, bt5_id=name,\n
update_catalog=(name in bt5_update_catalog),\n
install_dependency=True,\n
)\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
configuration_save_url=None, **kw
</string>
</value>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment