Commit d651845d authored by Rafael Monnerat's avatar Rafael Monnerat

Follow up new getDependencyList behaviour

  - Now getDependencyList returns entire list of dependencies even
    if it is already installed.
parent f1ac95fe
......@@ -71,6 +71,7 @@ if len(uids) == 0:\n
id_list = []\n
portal_status_message = \'\'\n
current_uid_list=[]\n
installed_business_template_title_list = context.getInstalledBusinessTemplateTitleList()\n
for uid in uids:\n
current_uid_list.append(uid)\n
repository, id = context.decodeRepositoryBusinessTemplateUid(uid)\n
......@@ -79,8 +80,11 @@ for uid in uids:\n
# Check for missing dependencies\n
for uid in uids:\n
repository, id = context.decodeRepositoryBusinessTemplateUid(uid)\n
dependency_list = context.getDependencyList((repository, id));\n
dependency_list = context.getDependencyList((repository, id))\n
for dep_repository, dep_id in dependency_list:\n
if dep_id != id and \\\n
dep_id in installed_business_template_title_list:\n
continue\n
if dep_id not in id_list:\n
id_list.append(dep_id)\n
if dep_repository != \'meta\':\n
......
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