Commit 10660755 authored by Aurel's avatar Aurel

when checking dependency do it on title and provision

parent 5b8778ae
...@@ -124,7 +124,7 @@ class TemplateTool (BaseTool): ...@@ -124,7 +124,7 @@ class TemplateTool (BaseTool):
latest_bt = None latest_bt = None
latest_revision = 0 latest_revision = 0
for bt in self.contentValues(filter={'portal_type':'Business Template'}): 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() installation_state = bt.getInstallationState()
if installation_state == 'installed': if installation_state == 'installed':
latest_bt = bt latest_bt = bt
...@@ -906,7 +906,7 @@ class TemplateTool (BaseTool): ...@@ -906,7 +906,7 @@ class TemplateTool (BaseTool):
# Something like "(>= 1.0rc6)". # Something like "(>= 1.0rc6)".
version_restriction = version_restriction[1:-1] version_restriction = version_restriction[1:-1]
require_update = False require_update = False
installed_bt = self.portal_templates.getInstalledBusinessTemplate(dependency) installed_bt = self.getInstalledBusinessTemplate(dependency)
if version_restriction is not None: if version_restriction is not None:
if installed_bt is not None: if installed_bt is not None:
# Check if the installed version require an update # Check if the installed version require an update
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment