[Erp5-report] r35932 fabien - in /experimental/bt5/erp5_credential: WorkflowTemplateItem/po...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 3 10:46:57 CEST 2010
Author: fabien
Date: Thu Jun 3 10:46:56 2010
New Revision: 35932
URL: http://svn.erp5.org?rev=35932&view=rev
Log:
improve interaction workflow :
- set descriptions and titles
- rename some transitions
- add a new transition to be able to update Person properties using a Credential Update
- change some variable names
Added:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_request_automatic_approve.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update_automatic_approve.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_approve.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml
Modified:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/create_person_and_assignment.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/CredentialRequest_createUserAccount.xml
experimental/bt5/erp5_credential/bt/revision
Modified: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/create_person_and_assignment.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/create_person_and_assignment.xml?rev=35932&r1=35931&r2=35932&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/create_person_and_assignment.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/create_person_and_assignment.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -43,7 +43,7 @@
</item>
<item>
<key> <string>description</string> </key>
- <value> <string></string> </value>
+ <value> <string>When a Credential Request is approved, this create the corresponding person with corresponding assignments and open it. When this transition is executed, the new user should be able to log in the system.</string> </value>
</item>
<item>
<key> <string>guard</string> </key>
@@ -83,7 +83,7 @@
</item>
<item>
<key> <string>title</string> </key>
- <value> <string></string> </value>
+ <value> <string>Create Person And Assignment</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_request_automatic_approve.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_request_automatic_approve.xml?rev=35932&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_request_automatic_approve.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_request_automatic_approve.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -1,0 +1,129 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>actbox_category</string> </key>
+ <value> <string>workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_url</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>activate_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value>
+ <list>
+ <string>Credential_approve</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>before_commit_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string>If the related system preference property is checked, approve transition will be automatically called after submit without any human review. If the preference property is not checked, this mean that a review and manual transition change is needed.</string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>credential_request_automatic_approve</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>submit</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>once_per_transaction</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>portal_type_filter</string> </key>
+ <value>
+ <list>
+ <string>Credential Request</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Approve Credential Request Automatically </string> </value>
+ </item>
+ <item>
+ <key> <string>trigger_type</string> </key>
+ <value> <int>2</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <global name="Guard" module="Products.DCWorkflow.Guard"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>expr</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="3" aka="AAAAAAAAAAM=">
+ <pickle>
+ <tuple>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>text</string> </key>
+ <value> <string>python: here.getPortalObject().portal_preferences.isPreferredAutomaticApproveCredentialRequest(False)</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update.xml?rev=35932&r1=35931&r2=35932&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -30,7 +30,9 @@
<item>
<key> <string>after_script_name</string> </key>
<value>
- <tuple/>
+ <list>
+ <string>Credential_updatePersonProperties</string>
+ </list>
</value>
</item>
<item>
@@ -56,7 +58,9 @@
<item>
<key> <string>method_id</string> </key>
<value>
- <list/>
+ <list>
+ <string>approve</string>
+ </list>
</value>
</item>
<item>
@@ -66,7 +70,9 @@
<item>
<key> <string>portal_type_filter</string> </key>
<value>
- <none/>
+ <list>
+ <string>Credential Update</string>
+ </list>
</value>
</item>
<item>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update_automatic_approve.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update_automatic_approve.xml?rev=35932&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update_automatic_approve.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/credential_update_automatic_approve.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -1,0 +1,129 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>actbox_category</string> </key>
+ <value> <string>workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_url</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>activate_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value>
+ <list>
+ <string>Credential_approve</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>before_commit_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string>If the related system preference property is checked, approve transition will be automatically called after submit without any human review. If the preference property is not checked, this mean that a review and manual transition change is needed.</string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>credential_update_automatic_approve</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>submit</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>once_per_transaction</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>portal_type_filter</string> </key>
+ <value>
+ <list>
+ <string>Credential Update</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Approve Credential Update Automatically</string> </value>
+ </item>
+ <item>
+ <key> <string>trigger_type</string> </key>
+ <value> <int>2</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <global name="Guard" module="Products.DCWorkflow.Guard"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>expr</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="3" aka="AAAAAAAAAAM=">
+ <pickle>
+ <tuple>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>text</string> </key>
+ <value> <string>python: here.getPortalObject().portal_preferences.isPreferredAutomaticApproveCredentialUpdate(False)</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/CredentialRequest_createUserAccount.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/CredentialRequest_createUserAccount.xml?rev=35932&r1=35931&r2=35932&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/CredentialRequest_createUserAccount.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/CredentialRequest_createUserAccount.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -54,40 +54,37 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = state_change.getPortal()\n
-\n
-subscription_request_object = state_change[\'object\']\n
+credential_request = state_change[\'object\']\n
\n
# create a person corresponding to the request\n
person_module = portal.getDefaultModule(\'Person\')\n
-\n
-person_kw = { \'reference\':subscription_request_object.getUserId(),\n
- \'first_name\':subscription_request_object.getFirstName(),\n
- \'last_name\':subscription_request_object.getLastName(),\n
- \'email_text\':subscription_request_object.getEmailText(),\n
- \'default_career_role_list\':subscription_request_object.getRoleList(),\n
- \'default_credential_question_answer\':subscription_request_object.getAnswer(),\n
- \'default_credential_question_question_free_text\':subscription_request_object.getQuestionFreeText(),\n
- \'default_credential_question_question\':subscription_request_object.getQuestion(),\n
+person_kw = { \'reference\':credential_request.getUserId(),\n
+ \'first_name\':credential_request.getFirstName(),\n
+ \'last_name\':credential_request.getLastName(),\n
+ \'email_text\':credential_request.getEmailText(),\n
+ \'default_career_role_list\':credential_request.getRoleList(),\n
+ \'default_credential_question_answer\':credential_request.getDefaultCredentialQuestionAnswer(),\n
+ \'default_credential_question_question_free_text\':credential_request.getDefaultCredentialQuestionQuestionFreeText(),\n
+ \'default_credential_question_question\':credential_request.getDefaultCredentialQuestionQuestion(),\n
}\n
\n
person = person_module.newContent(portal_type=\'Person\',\n
**person_kw)\n
-person.setEncodedPassword(subscription_request_object.getPassword())\n
-\n
-subscription_request_object.setDestinationDecisionValue(person)\n
+person.setEncodedPassword(credential_request.getPassword())\n
+credential_request.setDestinationDecisionValue(person)\n
\n
# create assignment\n
assignment = person.newContent(portal_type=\'Assignment\',\n
- function = subscription_request_object.getFunction(),\n
- site = subscription_request_object.getSite(),\n
- activity_list = subscription_request_object.getActivityList(),\n
+ function = credential_request.getFunction(),\n
+ site = credential_request.getSite(),\n
+ activity_list = credential_request.getActivityList(),\n
start_date=DateTime(),\n
stop_date=DateTime() + 365*100) # open the assignement for 100 years\n
\n
# open the assignment\n
assignment.open()\n
\n
-return person.Base_redirect(\'view\', keep_items=dict(portal_status_message=\n
+return context.Base_redirect(\'view\', keep_items=dict(portal_status_message=\n
context.Base_translateString(\'Person created.\')))\n
</string> </value>
</item>
@@ -137,15 +134,15 @@
<string>_getattr_</string>
<string>portal</string>
<string>_getitem_</string>
- <string>subscription_request_object</string>
+ <string>credential_request</string>
<string>person_module</string>
<string>person_kw</string>
<string>_apply_</string>
<string>person</string>
<string>DateTime</string>
<string>assignment</string>
+ <string>context</string>
<string>dict</string>
- <string>context</string>
</tuple>
</value>
</item>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_approve.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_approve.xml?rev=35932&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_approve.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_approve.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -1,0 +1,143 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </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>"""\n
+ This script is used to automatically approve a submitted credential object.\n
+ The interaction use a system preference to call this script or not.\n
+"""\n
+\n
+credential_object = state_change[\'object\']\n
+if credential_object.getValidationState() == \'submitted\':\n
+ credential_object.approve()\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>state_change</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>1</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>state_change</string>
+ <string>_getitem_</string>
+ <string>credential_object</string>
+ <string>_getattr_</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>Credential_approve</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>This script use Proxy Role(Manager)</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml?rev=35932&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml [utf8] Thu Jun 3 10:46:56 2010
@@ -1,0 +1,161 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </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 = state_change.getPortal()\n
+credential_update = state_change[\'object\']\n
+related_person = credential_update.getDestinationDecisionValue()\n
+\n
+person_kw = { \'first_name\':credential_update.getFirstName(),\n
+ \'last_name\':credential_update.getLastName(),\n
+ \'email_text\':credential_update.getEmailText(),\n
+ \'default_credential_question_answer\':credential_update.getDefaultCredentialQuestionAnswer(),\n
+ \'default_credential_question_question_free_text\':credential_update.getDefaultCredentialQuestionQuestionFreeText(),\n
+ \'default_credential_question_question\':credential_update.getDefaultCredentialQuestionQuestion(),\n
+ }\n
+context.log(related_person.getFirstName())\n
+related_person.edit(**person_kw)\n
+context.log(related_person.getFirstName())\n
+\n
+if credential_update.getPassword():\n
+ related_person.setEncodedPassword(credential_update.getPassword())\n
+\n
+return context.Base_redirect(\'view\', keep_items=dict(portal_status_message=\n
+ context.Base_translateString(\'Person updated.\')))\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>state_change</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>1</int> </value>
+ </item>
+ <item>
+ <key> <string>co_varnames</string> </key>
+ <value>
+ <tuple>
+ <string>state_change</string>
+ <string>_getattr_</string>
+ <string>portal</string>
+ <string>_getitem_</string>
+ <string>credential_update</string>
+ <string>related_person</string>
+ <string>person_kw</string>
+ <string>context</string>
+ <string>_apply_</string>
+ <string>dict</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>Credential_updatePersonProperties</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>This script use Proxy Role(Manager)</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: experimental/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=35932&r1=35931&r2=35932&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Thu Jun 3 10:46:56 2010
@@ -1,1 +1,1 @@
-66
+67
More information about the Erp5-report
mailing list