From cca933ad43de28fa6e4e4828a9dd3ead94c34e0e Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Mon, 27 Dec 2010 12:09:44 +0000 Subject: [PATCH] Give Owner proxy role to Event_init and allow anonymous users create events. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41795 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_crm/Event_init.xml | 15 +++++++++++++-- bt5/erp5_crm/bt/revision | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml index 979aa92c1e..582c894588 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Event_init.xml @@ -50,9 +50,12 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string># XXX Reference will be probably generated with dedicated tool\n -# in near future\n + <value> <string>"""Owner Proxy Role allows anonymous users to create events\n +through web sites.\n \n +Reference will be probably generated with dedicated tool\n +in near future\n +"""\n type_definition = context.getTypeInfo()\n \n short_portal_type = type_definition.getShortTitle()\n @@ -73,6 +76,14 @@ context.edit(content_type=context.portal_preferences.getPreferredTextFormat(),\n <key> <string>_params</string> </key> <value> <string>*args, **kw</string> </value> </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Owner</string> + </tuple> + </value> + </item> <item> <key> <string>id</string> </key> <value> <string>Event_init</string> </value> diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index 39886ae89b..54a584dece 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -512 \ No newline at end of file +514 \ No newline at end of file -- 2.30.9