Commit 4bea6477 authored by Yusei Tahara's avatar Yusei Tahara

2007-09-14 Yusei

* Fix to use activity for updating related event local roles.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16381 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 423c62f6
<?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>portal = context.getPortalObject()\n
event_portal_type_list = portal.getPortalEventTypeList()\n
\n
for i in portal.portal_catalog(portal_type=event_portal_type_list,\n
follow_up=context.getRelativeUrl()):\n
i.activate().updateLocalRolesOnSecurityGroups()\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></string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>event_portal_type_list</string>
<string>_getiter_</string>
<string>i</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>Ticket_updateRelatedEventLocalRole</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -40,7 +40,7 @@
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>updateLocalRolesAndEventsLocalRoles</string>
<string>Ticket_updateLocalRole</string>
</list>
</value>
</item>
......@@ -62,7 +62,6 @@
<key> <string>method_id</string> </key>
<value>
<list>
<string>_setSourceTrade.*</string>
<string>_setSourceDecision.*</string>
<string>_setSource.*</string>
</list>
......
......@@ -70,13 +70,7 @@
<key> <string>_body</string> </key>
<value> <string>object = state_change[\'object\']\n
object.updateLocalRolesOnSecurityGroups()\n
\n
portal = state_change.getPortal()\n
event_portal_type_list = (\'Fax Message\', \'Letter\', \'Mail Message\', \'Note\', \'Phone Call\', \'Visit\')\n
\n
for i in portal.portal_catalog(portal_type=event_portal_type_list,\n
follow_up=object.getRelativeUrl()):\n
i.updateLocalRolesOnSecurityGroups()\n
object.activate().Ticket_updateRelatedEventLocalRole()\n
</string> </value>
</item>
<item>
......@@ -131,10 +125,6 @@ for i in portal.portal_catalog(portal_type=event_portal_type_list,\n
<string>_getitem_</string>
<string>object</string>
<string>_getattr_</string>
<string>portal</string>
<string>event_portal_type_list</string>
<string>_getiter_</string>
<string>i</string>
</tuple>
</value>
</item>
......@@ -151,7 +141,7 @@ for i in portal.portal_catalog(portal_type=event_portal_type_list,\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>updateLocalRolesAndEventsLocalRoles</string> </value>
<value> <string>Ticket_updateLocalRole</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
2007-09-14 Yusei
* Fix to use activity for updating related event local roles.
2007-09-14 Thierry
* Add missing portal type actions
......
102
\ No newline at end of file
104
\ 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