Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
Commits
2f0368f5
Commit
2f0368f5
authored
May 26, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portal_templates: Allow searching business template by name when installing from repository
parent
dd39de16
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
183 additions
and
16 deletions
+183
-16
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_getRepositoryBusinessTemplateList.xml
...5_core/TemplateTool_getRepositoryBusinessTemplateList.xml
+76
-0
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog.xml
...Tool_viewDownloadRepositoryBusinessTemplateListDialog.xml
+5
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog/listbox.xml
...wDownloadRepositoryBusinessTemplateListDialog/listbox.xml
+40
-3
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog.xml
...eTool_viewInstallRepositoryBusinessTemplateListDialog.xml
+5
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog/listbox.xml
...ewInstallRepositoryBusinessTemplateListDialog/listbox.xml
+57
-11
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_getRepositoryBusinessTemplateList.xml
0 → 100644
View file @
2f0368f5
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
# return the list of business_template, optionnally filtered by title, for installation dialog.\n
template_list = context.getRepositoryBusinessTemplateList(**kw)\n
\n
# XXX this is not usual catalog syntax ...\n
title = title.replace(\'%\', \'\')\n
\n
if title:\n
return [bt for bt in template_list if title in bt.getTitle()]\n
\n
return template_list\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
title="", **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
TemplateTool_getRepositoryBusinessTemplateList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog.xml
View file @
2f0368f5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<ZopeData>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<pickle>
<global
name=
"ERP5
Form"
module=
"Products.ERP5Form.Form
"
/>
<global
name=
"ERP5
Form"
module=
"erp5.portal_type
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
...
@@ -121,6 +121,10 @@
...
@@ -121,6 +121,10 @@
</item>
</item>
<item>
<item>
<key>
<string>
update_action
</string>
</key>
<key>
<string>
update_action
</string>
</key>
<value>
<string>
TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog
</string>
</value>
</item>
<item>
<key>
<string>
update_action_title
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
</dictionary>
</dictionary>
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadRepositoryBusinessTemplateListDialog/listbox.xml
View file @
2f0368f5
...
@@ -378,6 +378,10 @@
...
@@ -378,6 +378,10 @@
<key>
<string>
default
</string>
</key>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
default_display_style
</string>
</key>
<value>
<string>
table
</string>
</value>
</item>
<item>
<item>
<key>
<string>
default_params
</string>
</key>
<key>
<string>
default_params
</string>
</key>
<value>
<value>
...
@@ -388,6 +392,12 @@
...
@@ -388,6 +392,12 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_style_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<value>
...
@@ -422,10 +432,18 @@
...
@@ -422,10 +432,18 @@
<list/>
<list/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
global_search_column
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
0
</int>
</value>
</item>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<item>
<key>
<string>
lines
</string>
</key>
<key>
<string>
lines
</string>
</key>
<value>
<int>
50
</int>
</value>
<value>
<int>
50
</int>
</value>
...
@@ -446,6 +464,10 @@
...
@@ -446,6 +464,10 @@
<list/>
<list/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
page_navigation_template
</string>
</key>
<value>
<string>
ListBox_viewSliderPageNavigationRenderer
</string>
</value>
</item>
<item>
<item>
<key>
<string>
page_template
</string>
</key>
<key>
<string>
page_template
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -466,14 +488,23 @@
...
@@ -466,14 +488,23 @@
<key>
<string>
report_tree
</string>
</key>
<key>
<string>
report_tree
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
0
</int>
</value>
</item>
</item>
<item>
<key>
<string>
row_css_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
search
</string>
</key>
<key>
<string>
search
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
search_columns
</string>
</key>
<key>
<string>
search_columns
</string>
</key>
<value>
<value>
<list/>
<list>
<tuple>
<string>
title
</string>
<string>
Name
</string>
</tuple>
</list>
</value>
</value>
</item>
</item>
<item>
<item>
...
@@ -506,6 +537,12 @@
...
@@ -506,6 +537,12 @@
<key>
<string>
stat_method
</string>
</key>
<key>
<string>
stat_method
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
style_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Business Templates
</string>
</value>
<value>
<string>
Business Templates
</string>
</value>
...
@@ -561,7 +598,7 @@
...
@@ -561,7 +598,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
method_name
</string>
</key>
<key>
<string>
method_name
</string>
</key>
<value>
<string>
getRepositoryBusinessTemplateList
</string>
</value>
<value>
<string>
TemplateTool_
getRepositoryBusinessTemplateList
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog.xml
View file @
2f0368f5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<ZopeData>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<pickle>
<global
name=
"ERP5
Form"
module=
"Products.ERP5Form.Form
"
/>
<global
name=
"ERP5
Form"
module=
"erp5.portal_type
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
...
@@ -122,6 +122,10 @@
...
@@ -122,6 +122,10 @@
</item>
</item>
<item>
<item>
<key>
<string>
update_action
</string>
</key>
<key>
<string>
update_action
</string>
</key>
<value>
<string>
TemplateTool_viewInstallRepositoryBusinessTemplateListDialog
</string>
</value>
</item>
<item>
<key>
<string>
update_action_title
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
</dictionary>
</dictionary>
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewInstallRepositoryBusinessTemplateListDialog/listbox.xml
View file @
2f0368f5
...
@@ -327,6 +327,10 @@
...
@@ -327,6 +327,10 @@
<key>
<string>
alternate_name
</string>
</key>
<key>
<string>
alternate_name
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
anchor
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<item>
<key>
<string>
columns
</string>
</key>
<key>
<string>
columns
</string>
</key>
<value>
<value>
...
@@ -378,6 +382,10 @@
...
@@ -378,6 +382,10 @@
<key>
<string>
default
</string>
</key>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
default_display_style
</string>
</key>
<value>
<string>
table
</string>
</value>
</item>
<item>
<item>
<key>
<string>
default_params
</string>
</key>
<key>
<string>
default_params
</string>
</key>
<value>
<value>
...
@@ -388,6 +396,12 @@
...
@@ -388,6 +396,12 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
display_style_list
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<value>
...
@@ -422,10 +436,18 @@
...
@@ -422,10 +436,18 @@
<list/>
<list/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
global_search_column
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
hidden
</string>
</key>
<key>
<string>
hidden
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
0
</int>
</value>
</item>
</item>
<item>
<key>
<string>
hide_rows_on_no_search_criterion
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<item>
<key>
<string>
lines
</string>
</key>
<key>
<string>
lines
</string>
</key>
<value>
<int>
50
</int>
</value>
<value>
<int>
50
</int>
</value>
...
@@ -446,6 +468,10 @@
...
@@ -446,6 +468,10 @@
<list/>
<list/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
page_navigation_template
</string>
</key>
<value>
<string>
ListBox_viewSliderPageNavigationRenderer
</string>
</value>
</item>
<item>
<item>
<key>
<string>
page_template
</string>
</key>
<key>
<string>
page_template
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -466,14 +492,23 @@
...
@@ -466,14 +492,23 @@
<key>
<string>
report_tree
</string>
</key>
<key>
<string>
report_tree
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
0
</int>
</value>
</item>
</item>
<item>
<key>
<string>
row_css_method
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
search
</string>
</key>
<key>
<string>
search
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
search_columns
</string>
</key>
<key>
<string>
search_columns
</string>
</key>
<value>
<value>
<list/>
<list>
<tuple>
<string>
title
</string>
<string>
Name
</string>
</tuple>
</list>
</value>
</value>
</item>
</item>
<item>
<item>
...
@@ -493,7 +528,12 @@
...
@@ -493,7 +528,12 @@
<item>
<item>
<key>
<string>
sort_columns
</string>
</key>
<key>
<string>
sort_columns
</string>
</key>
<value>
<value>
<list/>
<list>
<tuple>
<string>
none
</string>
<string>
none
</string>
</tuple>
</list>
</value>
</value>
</item>
</item>
<item>
<item>
...
@@ -506,10 +546,22 @@
...
@@ -506,10 +546,22 @@
<key>
<string>
stat_method
</string>
</key>
<key>
<string>
stat_method
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
</item>
</item>
<item>
<key>
<string>
style_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Business Templates
</string>
</value>
<value>
<string>
Business Templates
</string>
</value>
</item>
</item>
<item>
<key>
<string>
untranslatable_columns
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
url_columns
</string>
</key>
<key>
<string>
url_columns
</string>
</key>
<value>
<value>
...
@@ -557,19 +609,13 @@
...
@@ -557,19 +609,13 @@
</record>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<pickle>
<tuple>
<global
name=
"Method"
module=
"Products.Formulator.MethodField"
/>
<tuple>
<string>
Products.Formulator.MethodField
</string>
<string>
Method
</string>
</tuple>
<none/>
</tuple>
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
method_name
</string>
</key>
<key>
<string>
method_name
</string>
</key>
<value>
<string>
getRepositoryBusinessTemplateList
</string>
</value>
<value>
<string>
TemplateTool_
getRepositoryBusinessTemplateList
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
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