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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
c9f102d7
Commit
c9f102d7
authored
Aug 19, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TemplateTool.updateBusinessTemplateFromUrl: do not clear catalog unless explicitely requested
parent
51328ef1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+1
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+1
-4
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
c9f102d7
...
@@ -5158,7 +5158,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -5158,7 +5158,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
return
modified_object_list
return
modified_object_list
def
_install
(
self
,
force
=
1
,
object_to_update
=
None
,
update_translation
=
0
,
def
_install
(
self
,
force
=
1
,
object_to_update
=
None
,
update_translation
=
0
,
update_catalog
=
_MARKER
,
**
kw
):
update_catalog
=
False
,
**
kw
):
"""
"""
Install a new Business Template, if force, all will be upgraded or installed
Install a new Business Template, if force, all will be upgraded or installed
otherwise depends of dict object_to_update
otherwise depends of dict object_to_update
...
...
product/ERP5/Tool/TemplateTool.py
View file @
c9f102d7
...
@@ -1341,7 +1341,7 @@ class TemplateTool (BaseTool):
...
@@ -1341,7 +1341,7 @@ class TemplateTool (BaseTool):
keep_original_list=None,
keep_original_list=None,
before_triggered_bt5_id_list=None,
before_triggered_bt5_id_list=None,
after_triggered_bt5_id_list=None,
after_triggered_bt5_id_list=None,
update_catalog=
_MARKER
,
update_catalog=
False
,
reinstall=False,
reinstall=False,
active_process=None,
active_process=None,
force_keep_list=None,
force_keep_list=None,
...
@@ -1428,9 +1428,6 @@ class TemplateTool (BaseTool):
...
@@ -1428,9 +1428,6 @@ class TemplateTool (BaseTool):
log('
Execute
%
r' % before_triggered_bt5_id)
log('
Execute
%
r' % before_triggered_bt5_id)
imported_bt5.unrestrictedTraverse(before_triggered_bt5_id)()
imported_bt5.unrestrictedTraverse(before_triggered_bt5_id)()
if update_catalog is _MARKER and install_kw != {}:
update_catalog = imported_bt5.isCatalogUpdatable()
imported_bt5.install(object_to_update=install_kw,
imported_bt5.install(object_to_update=install_kw,
update_catalog=update_catalog)
update_catalog=update_catalog)
...
...
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