[Erp5-report] r38419 fx.algrain - /experimental/bt5/erp5_credential/WorkflowTemplateItem/po...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 16 16:28:38 CEST 2010
Author: fx.algrain
Date: Thu Sep 16 16:28:34 2010
New Revision: 38419
URL: http://svn.erp5.org?rev=38419&view=rev
Log:
Add update information when accept a credential update.
Remove old script because we simplify CredentialRequest_createUserAccount
(see earlier changes)
Removed:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updateSetPropertiesFromDestinationDecision.xml
Removed: 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=38418&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updatePersonProperties.xml (removed)
@@ -1,156 +0,0 @@
-<?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
-related_person.edit(**person_kw)\n
-\n
-if credential_update.getPassword():\n
- related_person.setEncodedPassword(credential_update.getPassword())\n
- context.portal_caches.clearCache((\'erp5_content_short\',))\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>_apply_</string>
- <string>context</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>
Removed: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updateSetPropertiesFromDestinationDecision.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updateSetPropertiesFromDestinationDecision.xml?rev=38418&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updateSetPropertiesFromDestinationDecision.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_updateSetPropertiesFromDestinationDecision.xml (removed)
@@ -1,149 +0,0 @@
-<?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>credential_update = state_change[\'object\']\n
-related_person = credential_update.getDestinationDecisionValue()\n
-\n
-person_kw = { \'first_name\':related_person.getFirstName(),\n
- \'last_name\':related_person.getLastName(),\n
- \'email_text\':related_person.getEmailText(),\n
- \'default_credential_question_answer\':related_person.getDefaultCredentialQuestionAnswer(),\n
- \'default_credential_question_question_free_text\':related_person.getDefaultCredentialQuestionQuestionFreeText(),\n
- \'default_credential_question_question\':related_person.getDefaultCredentialQuestionQuestion(),\n
- }\n
-credential_update.edit(**person_kw)\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_update</string>
- <string>_getattr_</string>
- <string>related_person</string>
- <string>person_kw</string>
- <string>_apply_</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_updateSetPropertiesFromDestinationDecision</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>
More information about the Erp5-report
mailing list