Commit cc8c6557 authored by Ivan Tyagov's avatar Ivan Tyagov

Follow up r32741

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32761 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2df0bd51
...@@ -47,24 +47,22 @@ ...@@ -47,24 +47,22 @@
tal:define="isAnon python: context.portal_membership.isAnonymousUser();\n tal:define="isAnon python: context.portal_membership.isAnonymousUser();\n
mode python: \'web_section\';\n mode python: \'web_section\';\n
default_pad_group python: options.get(\'default_pad_group\', None);\n default_pad_group python: options.get(\'default_pad_group\', None);\n
knowledge_pads python: \n knowledge_pads python: here.ERP5Site_getKnowledgePadListForUser(\n
here.ERP5Site_getKnowledgePadListForUser(mode=mode,\n mode=mode,\n
default_pad_group=default_pad_group);\n default_pad_group=default_pad_group);\n
struct python:\n struct python: here.WebSite_getActiveKnowledgePadForUser(knowledge_pads, \n
here.WebSite_getActiveKnowledgePadForUser(knowledge_pads, \n
default_pad_group);\n default_pad_group);\n
active_knowledge_pad python: struct[0];\n active_knowledge_pad python: struct[0];\n
knowledge_pads python: struct[1];\n knowledge_pads python: struct[1];\n
hasUserActivity python:\n hasUserActivity python: here.ERP5Site_hasUserActivity(\n
here.ERP5Site_hasUserActivity(active_knowledge_pad,\n active_knowledge_pad,\n
mode=\'web_section\');\n mode=mode,\n
pending_activities python: active_knowledge_pad is None or \n default_pad_group=default_pad_group);\n
hasUserActivity;\n isAnon python: context.portal_membership.isAnonymousUser();\n
createDefaultPadForUser python: len(knowledge_pads)==0 and\n createDefaultPadForUser python: len(knowledge_pads)==0 and\n
not hasUserActivity;\n
waitForActivitiesOnServer python: active_knowledge_pad is None and\n
hasUserActivity;\n hasUserActivity;\n
waitForActivitiesOnServer python: pending_activities and \n
len(knowledge_pads)>=1 and \n
active_knowledge_pad is None;\n
current_web_section python:\n current_web_section python:\n
context.REQUEST.get(\'current_web_section\', here);\n context.REQUEST.get(\'current_web_section\', here);\n
current_web_section python:\n current_web_section python:\n
...@@ -107,8 +105,9 @@ ...@@ -107,8 +105,9 @@
\n \n
</tal:block>\n </tal:block>\n
\n \n
<div tal:condition="python: createDefaultPadForUser and not isAnon \n <div tal:condition="python: not isAnon and\n
and isUserAllowedToCreateKnowledgePads">\n createDefaultPadForUser and \n
isUserAllowedToCreateKnowledgePads">\n
\n \n
<div class="wait_block">\n <div class="wait_block">\n
<h6 i18n:translate="" i18n:domain="ui"> \n <h6 i18n:translate="" i18n:domain="ui"> \n
...@@ -122,8 +121,8 @@ ...@@ -122,8 +121,8 @@
tal:content="structure python: \n tal:content="structure python: \n
\'\'\'createDefaultPadOnServer(5000,\n \'\'\'createDefaultPadOnServer(5000,\n
\'%s/ERP5Site_createDefaultKnowledgePadListForUser\', \n \'%s/ERP5Site_createDefaultKnowledgePadListForUser\', \n
\'%s\', \'%s/view\', \'web_section\');\'\'\' \n \'%s\', \'%s/view\', \'%s\');\'\'\' \n
%(current_web_section_url, default_pad_group, current_web_section_url)">\n %(current_web_section_url, default_pad_group, current_web_section_url, mode)">\n
</script>\n </script>\n
</div>\n </div>\n
\n \n
...@@ -132,9 +131,7 @@ ...@@ -132,9 +131,7 @@
<span metal:use-macro="container/Base_viewKnowledgePadMacroLibrary/macros/knowledge_pad_security_check"> Security check\n <span metal:use-macro="container/Base_viewKnowledgePadMacroLibrary/macros/knowledge_pad_security_check"> Security check\n
</span>\n </span>\n
\n \n
</tal:block>\n </tal:block>
\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
...@@ -41,24 +41,24 @@ ...@@ -41,24 +41,24 @@
<tal:block \n <tal:block \n
tal:define="isAnon python: context.portal_membership.isAnonymousUser();\n tal:define="isAnon python: context.portal_membership.isAnonymousUser();\n
mode python: \'web_section\';\n
default_pad_group python: options.get(\'default_pad_group\', None);\n default_pad_group python: options.get(\'default_pad_group\', None);\n
knowledge_pads python: \n knowledge_pads python: here.ERP5Site_getKnowledgePadListForUser(\n
here.ERP5Site_getKnowledgePadListForUser(mode=\'web_section\',\n mode=mode,\n
default_pad_group=default_pad_group);\n default_pad_group=default_pad_group);\n
struct python:\n struct python: here.WebSite_getActiveKnowledgePadForUser(knowledge_pads, \n
here.WebSite_getActiveKnowledgePadForUser(knowledge_pads, \n
default_pad_group);\n default_pad_group);\n
active_knowledge_pad python: struct[0];\n active_knowledge_pad python: struct[0];\n
knowledge_pads python: struct[1];\n knowledge_pads python: struct[1];\n
hasUserActivity python:\n hasUserActivity python: here.ERP5Site_hasUserActivity(\n
here.ERP5Site_hasUserActivity(active_knowledge_pad);\n active_knowledge_pad,\n
pending_activities python: active_knowledge_pad is None or \n mode=mode,\n
hasUserActivity;\n default_pad_group=default_pad_group);\n
isAnon python: context.portal_membership.isAnonymousUser();\n
createDefaultPadForUser python: len(knowledge_pads)==0 and\n createDefaultPadForUser python: len(knowledge_pads)==0 and\n
not hasUserActivity;\n
waitForActivitiesOnServer python: active_knowledge_pad is None and\n
hasUserActivity;\n hasUserActivity;\n
waitForActivitiesOnServer python: pending_activities and \n
len(knowledge_pads)>=1 and \n
active_knowledge_pad is None;\n
current_web_section python:\n current_web_section python:\n
context.REQUEST.get(\'current_web_section\', here);\n context.REQUEST.get(\'current_web_section\', here);\n
current_web_section python:\n current_web_section python:\n
......
...@@ -41,24 +41,24 @@ ...@@ -41,24 +41,24 @@
<tal:block \n <tal:block \n
tal:define="isAnon python: context.portal_membership.isAnonymousUser();\n tal:define="isAnon python: context.portal_membership.isAnonymousUser();\n
mode python: \'web_section\';\n
default_pad_group python: options.get(\'default_pad_group\', None);\n default_pad_group python: options.get(\'default_pad_group\', None);\n
knowledge_pads python: \n knowledge_pads python: here.ERP5Site_getKnowledgePadListForUser(\n
here.ERP5Site_getKnowledgePadListForUser(mode=\'web_section\',\n mode=mode,\n
default_pad_group=default_pad_group);\n default_pad_group=default_pad_group);\n
struct python:\n struct python: here.WebSite_getActiveKnowledgePadForUser(knowledge_pads, \n
here.WebSite_getActiveKnowledgePadForUser(knowledge_pads, \n
default_pad_group);\n default_pad_group);\n
active_knowledge_pad python: struct[0];\n active_knowledge_pad python: struct[0];\n
knowledge_pads python: struct[1];\n knowledge_pads python: struct[1];\n
hasUserActivity python:\n hasUserActivity python: here.ERP5Site_hasUserActivity(\n
here.ERP5Site_hasUserActivity(active_knowledge_pad);\n active_knowledge_pad,\n
pending_activities python: active_knowledge_pad is None or \n mode=mode,\n
hasUserActivity;\n default_pad_group=default_pad_group);\n
isAnon python: context.portal_membership.isAnonymousUser();\n
createDefaultPadForUser python: len(knowledge_pads)==0 and\n createDefaultPadForUser python: len(knowledge_pads)==0 and\n
not hasUserActivity;\n
waitForActivitiesOnServer python: active_knowledge_pad is None and\n
hasUserActivity;\n hasUserActivity;\n
waitForActivitiesOnServer python: pending_activities and \n
len(knowledge_pads)>=1 and \n
active_knowledge_pad is None;\n
current_web_section python:\n current_web_section python:\n
context.REQUEST.get(\'current_web_section\', here);\n context.REQUEST.get(\'current_web_section\', here);\n
current_web_section python:\n current_web_section python:\n
......
478 480
\ 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