[Erp5-report] r9591 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Aug 31 14:41:01 CEST 2006


Author: kevin
Date: Thu Aug 31 14:40:47 2006
New Revision: 9591

URL: http://svn.erp5.org?rev=9591&view=rev
Log:
Set the default Webmaster User ID.

Modified:
    erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_init.xml

Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_init.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_init.xml?rev=9591&r1=9590&r2=9591&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_init.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_init.xml Thu Aug 31 14:40:47 2006
@@ -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 @@
                             <string>kw</string>
                             <string>default_layout</string>
                             <string>_getattr_</string>
-<string>context</string>
+                            <string>context</string>
+                            <string>user_id</string>
                           </tuple>
                         </value>
                     </item>




More information about the Erp5-report mailing list