From c5c276b070ffbd243ad4de4d08791c51303389b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Thu, 11 Jan 2007 13:26:45 +0000 Subject: [PATCH] test empty too for version restriction too git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12018 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 4210f23eed..260ecdf511 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -4536,7 +4536,7 @@ Business Template is a set of definitions, such as skins, portal types and categ installed_bt = self.portal_templates.getInstalledBusinessTemplate(dependency) if (not self.portal_templates.IsOneProviderInstalled(dependency)) \ and ((installed_bt is None) \ - or (version_restriction is not None and + or (version_restriction not in (None, '') and (not self.portal_templates.compareVersionStrings(installed_bt.getVersion(), version_restriction)))): missing_dep_list.append((dependency, version_restriction or '')) if len(missing_dep_list) != 0: -- 2.30.9