Commit 41f7e09b authored by Gabriel Monnerat's avatar Gabriel Monnerat

- add proxy role

- remove line which creates one not used object

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ba0096d
...@@ -69,9 +69,8 @@ new_content.makeTemplateInstance()\n ...@@ -69,9 +69,8 @@ new_content.makeTemplateInstance()\n
\n \n
portal_type = new_content.getPortalType()\n portal_type = new_content.getPortalType()\n
module = portal.getDefaultModule(portal_type)\n module = portal.getDefaultModule(portal_type)\n
new_object = module.newContent(portal_type=portal_type)\n
\n \n
kw["webpage_path"] = new_object.getPath()\n kw["webpage_path"] = new_content.getPath()\n
return new_content.Base_redirect(context.Base_getEditorViewName(portal_type), \n return new_content.Base_redirect(context.Base_getEditorViewName(portal_type), \n
keep_items = dict(editable_mode=1, **kw))\n keep_items = dict(editable_mode=1, **kw))\n
</string> </value> </string> </value>
...@@ -86,6 +85,14 @@ return new_content.Base_redirect(context.Base_getEditorViewName(portal_type), \n ...@@ -86,6 +85,14 @@ return new_content.Base_redirect(context.Base_getEditorViewName(portal_type), \n
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>template=None, **kw</string> </value> <value> <string>template=None, **kw</string> </value>
</item> </item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
...@@ -126,7 +133,6 @@ return new_content.Base_redirect(context.Base_getEditorViewName(portal_type), \n ...@@ -126,7 +133,6 @@ return new_content.Base_redirect(context.Base_getEditorViewName(portal_type), \n
<string>new_content</string> <string>new_content</string>
<string>portal_type</string> <string>portal_type</string>
<string>module</string> <string>module</string>
<string>new_object</string>
<string>_write_</string> <string>_write_</string>
<string>_apply_</string> <string>_apply_</string>
<string>dict</string> <string>dict</string>
......
129 130
\ 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