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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
032d5731
Commit
032d5731
authored
Jul 20, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure all bt5 where found when resolve dependencies.
parent
a0d1ba54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+6
-1
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
032d5731
...
...
@@ -1240,11 +1240,13 @@ class TemplateTool (BaseTool):
available_bt5_list = self.getRepositoryBusinessTemplateList(
newest_only=newest_only)
template_title_list = set(template_title_list)
installed_bt5_title_list = self.getInstalledBusinessTemplateTitleList()
bt5_set = set([])
for available_bt5 in available_bt5_list:
if available_bt5.title in template_title_list:
template_title_list.remove(available_bt5.title)
document = self.getInstalledBusinessTemplate(available_bt5.title)
if not newest_only or document is None or (document is not None and
\
(int(document.getRevision()) < int(available_bt5.getRevision()))):
...
...
@@ -1277,6 +1279,9 @@ class TemplateTool (BaseTool):
"Unable to resolve dependencies for %s, options are %s"
\
% (dep_id, provider_list)
if len(template_title_list) > 0:
raise BusinessTemplateUnknownError, '
The
Business
Template
%
s
could
not
be
found
on
repositories
%
s
' %
\
(list(template_title_list), self.getRepositoryList())
return self.sortBusinessTemplateList(list(bt5_set))
security.declareProtected(Permissions.ManagePortal,
...
...
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