Commit 99945180 authored by Ivan Tyagov's avatar Ivan Tyagov

Allow set gadget mode & group from request.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41321 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55a03d29
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<tal:block \n <tal:block \n
tal:define="mode python: options.get(\'mode\', \'erp5_front\');\n tal:define="mode python: options.get(\'mode\', request.get(\'gadget_mode\', \'erp5_front\'));\n
default_pad_group python: options.get(\'default_pad_group\', \'\');\n default_pad_group python: options.get(\'default_pad_group\', request.get(\'gadget_default_pad_group\', \'\'));\n
kw python: dict(mode=mode, default_pad_group=default_pad_group);\n kw python: dict(mode=mode, default_pad_group=default_pad_group);\n
knowledge_pads python: here.ERP5Site_getKnowledgePadListForUser(**kw);\n knowledge_pads python: here.ERP5Site_getKnowledgePadListForUser(**kw);\n
struct python: here.ERP5Site_getActiveKnowledgePadForUser(knowledge_pads, **kw);\n struct python: here.ERP5Site_getActiveKnowledgePadForUser(knowledge_pads, **kw);\n
......
643 644
\ No newline at end of file \ 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