Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Yoji Takeuchi
erp5
Commits
10660755
Commit
10660755
authored
13 years ago
by
Aurel
Browse files
Options
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
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
...
...
This diff is collapsed.
Click to expand it.
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