Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
93f7cfc0
Commit
93f7cfc0
authored
Jan 25, 2017
by
Ayush Tiwari
Committed by
Ayush Tiwari
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_prototype: Add portal_type item and catalog item paths in template_path_list for BP
parent
6d3923f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+33
-0
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
93f7cfc0
...
@@ -593,6 +593,15 @@ class TemplateTool (BaseTool):
...
@@ -593,6 +593,15 @@ class TemplateTool (BaseTool):
module_list
=
import_template
.
geTemplateModuleIdList
()
module_list
=
import_template
.
geTemplateModuleIdList
()
template_path_list
.
extend
(
module_list
)
template_path_list
.
extend
(
module_list
)
# For portal_types, we have to add path and subobjetcs
portal_type_id_list
=
import_template
.
getTemplatePortalTypeIdList
()
portal_type_path_list
=
[]
for
id
in
portal_type_list
:
portal_type_path_list
.
append
(
'portal_types/'
+
id
,
'portal_types/'
+
id
+
'/**'
,
)
template_path_list
.
extend
(
portal_type_path_list
)
# For categories, we create path for category objects as well as the subcategories
# For categories, we create path for category objects as well as the subcategories
category_list
=
import_template
.
getTemplateCategoryList
()
category_list
=
import_template
.
getTemplateCategoryList
()
category_path_list
=
[]
category_path_list
=
[]
...
@@ -629,6 +638,30 @@ class TemplateTool (BaseTool):
...
@@ -629,6 +638,30 @@ class TemplateTool (BaseTool):
# For paths, we add them directly to the path list
# For paths, we add them directly to the path list
template_path_list
.
extend
(
import_template
.
getTemplatePathList
())
template_path_list
.
extend
(
import_template
.
getTemplatePathList
())
# Catalog methods would be added as sub objects
catalog_method_item_list
=
self
.
getTemplateCatalogMethodIdList
()
# For catalog objects, we check if there is any catalog object, and then
# add portal_catalog/erp5_mysql_innodb in the path if there is
template_catalog_datetime_key
=
self
.
getTemplateCatalogDatetimeKeyList
()
template_catalog_full_text_key
=
self
.
getTemplateCatalogFullTextKeyList
()
template_catalog_keyword_key
=
self
.
getTemplateCatalogKeywordKeyList
()
template_catalog_local_role_key
=
self
.
getCatalogLocalRoleKeyList
()
template_catalog_method_id
=
self
.
getTemplateCatalogMethodIdList
()
template_catalog_multivalue_key
=
self
.
getTempalteCatalogMultiValueKeyList
()
template_catalog_related_key
=
self
.
getTemplateCatalogRelatedKeyList
()
template_catalog_request_key
=
self
.
getTemplateCatalogRequestKeyList
()
template_catalog_result_key
=
self
.
getTemplateCatalogResultKeyList
()
template_catalog_result_table
=
self
.
getTempalteCatalogResultTableList
()
template_catalog_role_key
=
self
.
getTemplateCatalogRoleKeyList
()
template_catalog_scriptable_key
=
self
.
getTemplateCatalogScriptableKeyList
()
template_catalog_search_key
=
self
.
getTemplateCatalogSearchKeyList
()
template_catalog_security_uid_column
=
self
.
getTemplateCatalogSecurityUidColumnList
()
template_catalog_topic_key
=
self
.
getTemplateCatalogTopicKeyList
()
# Check if any catalog property exists and if yes, then we export the
# erp5_mysql_innodb object and use it for installation
# Create new objects for business package
# Create new objects for business package
bp5_package
=
self
.
newContent
(
portal_type
=
'Business Package'
)
bp5_package
=
self
.
newContent
(
portal_type
=
'Business Package'
)
bp5_package
.
edit
(
template_path_list
)
bp5_package
.
edit
(
template_path_list
)
...
...
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