Commit 55f87a06 authored by Christophe Dumez's avatar Christophe Dumez

- Fixed intallation order to fix dependencies handling problems..

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8966 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 561c07a1
......@@ -82,19 +82,15 @@ for item in listbox:\n
bt_dict[bt_id][object_id] = item[\'choice\']\n
\n
bt_title_list = []\n
for bt_id in bt_dict.keys():\n
object_list = bt_dict[bt_id]\n
for bt_id in bt_id_list:\n
if bt_id not in bt_dict.keys():\n
object_list=[]\n
else:\n
object_list = bt_dict[bt_id]\n
bt = context.portal_templates[bt_id]\n
bt.install(force=0, object_to_update=object_list)\n
bt_title_list.append(bt.getTitle())\n
\n
for id in bt_id_list:\n
if id not in bt_dict.keys():\n
bt = context.portal_templates[id]\n
bt.install(force=0, object_to_update=[])\n
bt_title_list.append(bt.getTitle())\n
\n
\n
REQUEST = container.REQUEST\n
RESPONSE = REQUEST.RESPONSE\n
\n
......@@ -164,7 +160,6 @@ return RESPONSE.redirect("%s?portal_status_message=Business+Template+%s+installe
<string>bt_title_list</string>
<string>object_list</string>
<string>bt</string>
<string>id</string>
<string>container</string>
<string>REQUEST</string>
<string>RESPONSE</string>
......
36
\ No newline at end of file
38
\ No newline at end of file
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