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
Tristan Cavelier
erp5
Commits
10660755
Commit
10660755
authored
Sep 02, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when checking dependency do it on title and provision
parent
5b8778ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+2
-2
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
10660755
...
...
@@ -124,7 +124,7 @@ class TemplateTool (BaseTool):
latest_bt
=
None
latest_revision
=
0
for
bt
in
self
.
contentValues
(
filter
=
{
'portal_type'
:
'Business Template'
}):
if
bt
.
getTitle
()
==
title
:
if
bt
.
getTitle
()
==
title
or
title
in
bt
.
getProvisionList
()
:
installation_state
=
bt
.
getInstallationState
()
if
installation_state
==
'installed'
:
latest_bt
=
bt
...
...
@@ -906,7 +906,7 @@ class TemplateTool (BaseTool):
# Something like "(>= 1.0rc6)".
version_restriction = version_restriction[1:-1]
require_update = False
installed_bt = self.
portal_templates.
getInstalledBusinessTemplate(dependency)
installed_bt = self.getInstalledBusinessTemplate(dependency)
if version_restriction is not None:
if installed_bt is not None:
# Check if the installed version require an update
...
...
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