Commit c08f67d8 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove the workflow chain for Link.

Add Base_checkPermission.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14474 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b9befcd7
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
<type>Favorite</type> <type>Favorite</type>
<workflow>edit_workflow</workflow> <workflow>edit_workflow</workflow>
</chain> </chain>
<chain>
<type>Link</type>
<workflow>edit_workflow</workflow>
</chain>
<chain> <chain>
<type>Mapped Value</type> <type>Mapped Value</type>
<workflow>edit_workflow</workflow> <workflow>edit_workflow</workflow>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Check for a permission on an object specified by a given path\n
# for current user. Return true only if the user is allowed.\n
portal = context.getPortalObject()\n
ob = portal.restrictedTraverse(path, None)\n
if ob is not None:\n
if portal.portal_membership.checkPermission(permission, ob):\n
return 1\n
return 0\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>path, permission</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>path</string>
<string>permission</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>None</string>
<string>ob</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_checkPermission</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
326 330
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,6 @@ Category Divergence Tester | edit_workflow ...@@ -2,7 +2,6 @@ Category Divergence Tester | edit_workflow
Category | edit_workflow Category | edit_workflow
Document | edit_workflow Document | edit_workflow
Favorite | edit_workflow Favorite | edit_workflow
Link | edit_workflow
Mapped Value | edit_workflow Mapped Value | edit_workflow
Predicate | rule_interaction_workflow Predicate | rule_interaction_workflow
Preference | preference_workflow Preference | preference_workflow
......
0 1
\ 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