Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
136
Merge Requests
136
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
nexedi
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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