Commit a43e6fc9 authored by Kevin Deldycke's avatar Kevin Deldycke

Set the default Webmaster User ID.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9591 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb222ad2
......@@ -70,9 +70,12 @@
<key> <string>_body</string> </key>
<value> <string># Set Web Site layout to default one\n
default_layout = \'erp5_web_default_layout\'\n
\n
context.setContainerLayout(default_layout)\n
context.setContentLayout(default_layout)\n
\n
# Set default webmaster to current user\n
user_id = context.portal_membership.getAuthenticatedMember().getUserName()\n
context.setWebmaster(user_id)\n
</string> </value>
</item>
<item>
......@@ -119,7 +122,8 @@ context.setContentLayout(default_layout)\n
<string>kw</string>
<string>default_layout</string>
<string>_getattr_</string>
<string>context</string>
<string>context</string>
<string>user_id</string>
</tuple>
</value>
</item>
......
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