Commit 59127010 authored by Ivan Tyagov's avatar Ivan Tyagov

Use unified gadget "API".

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40964 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1669ec3
......@@ -55,10 +55,7 @@
"""\n
\n
all_pads = [x for x in context.ERP5Site_getKnowledgePadListForUser(mode, default_pad_group)]\n
if mode.startswith(\'web\'):\n
active_pad, all_pads = context.WebSite_getActiveKnowledgePadForUser(all_pads, default_pad_group)\n
else:\n
active_pad, all_pads = context.ERP5Site_getActiveKnowledgePadForUser(all_pads)\n
active_pad, all_pads = context.ERP5Site_getActiveKnowledgePadForUser(all_pads, mode, default_pad_group)\n
\n
active_pad = active_pad.getObject()\n
gadget_list = active_pad.contentValues(filter={\'portal_type\': \'Knowledge Box\'})\n
......
20
\ No newline at end of file
21
\ 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