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
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
Hardik Juneja
erp5
Commits
7746dd0f
Commit
7746dd0f
authored
Oct 31, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do nothing if it is disallowed to clear catalog.
parent
4e0c2786
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+7
-2
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
7746dd0f
...
...
@@ -5182,8 +5182,13 @@ Business Template is a set of definitions, such as skins, portal types and categ
LOG
(
'Business Template'
,
0
,
'no SQL Catalog available'
)
update_catalog
=
0
else
:
LOG
(
'Business Template'
,
0
,
'Updating SQL Catalog'
)
catalog
.
manage_catalogClear
()
try
:
catalog
.
manage_catalogClear
()
except
NotImplementedError
:
LOG
(
'Business Template'
,
0
,
'Doing nothing, as catalog clearing'
' is disallowed'
)
else
:
LOG
(
'Business Template'
,
0
,
'Clearing SQL Catalog'
)
# get objects to remove
# do remove after because we may need backup object from installation
...
...
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