Commit a1ac3431 authored by Julien Muchembled's avatar Julien Muchembled

Fix display of front page when access tab is enabled


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6c2e5287
...@@ -94,22 +94,18 @@ def getModuleActionInformationDict(**kw):\n ...@@ -94,22 +94,18 @@ def getModuleActionInformationDict(**kw):\n
action_dict = module.Base_filterDuplicateActions(listFilteredActionsFor(module))\n action_dict = module.Base_filterDuplicateActions(listFilteredActionsFor(module))\n
\n \n
# Obtain a form id and a selection name from the view.\n # Obtain a form id and a selection name from the view.\n
# XXX Is it useful ?\n
form_id = \'view\'\n form_id = \'view\'\n
selection_name = \'default_selection\'\n selection_name = \'default_selection\'\n
type_info = module.getTypeInfo()\n for ai in action_dict[\'object_view\']:\n
expr = None\n if ai[\'id\'] == \'view\':\n
for ai in type_info.listActions():\n form_id = ai[\'url\'].rsplit(\'/\', 1)[-1]\n
if ai.getId() == \'view\':\n form = getattr(portal, form_id, None)\n
if form is not None:\n
listbox = form.Form_getListbox()\n
if listbox is not None:\n
selection_name = listbox.get_value(\'selection_name\')\n
break\n break\n
else:\n
ai = None\n
if ai is not None:\n
form_id = str(ai.getActionExpression()).rsplit(\'/\', 1)[-1]\n
form = getattr(portal, form_id, None)\n
if form is not None:\n
listbox = form.Form_getListbox()\n
if listbox is not None:\n
selection_name = listbox.get_value(\'selection_name\')\n
\n \n
# Collect view actions.\n # Collect view actions.\n
module_view_list = [(None, \'%s/view\' % module_url)]\n module_view_list = [(None, \'%s/view\' % module_url)]\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