[Erp5-report] r38908 fabien - /experimental/bt5/erp5_credential/WorkflowTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 6 10:12:23 CEST 2010
Author: fabien
Date: Wed Oct 6 10:12:23 2010
New Revision: 38908
URL: http://svn.erp5.org?rev=38908&view=rev
Log:
be consistent between Credential Recovery and other credential portal_types :
auto accept on submit if the preference allowed it.
Removed:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_acceptCredentialRecovery.xml
Removed: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_acceptCredentialRecovery.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_acceptCredentialRecovery.xml?rev=38907&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_acceptCredentialRecovery.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/scripts/Credential_acceptCredentialRecovery.xml (removed)
@@ -1,150 +0,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
- </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
-When the password is changed, this mean that credential recoveries for this user works, so it\n
-should be accepted.\n
-\'\'\'\n
-portal = state_change.getPortal()\n
-person = state_change[\'object\']\n
-isTransitionPossible = portal.portal_workflow.isTransitionPossible\n
-\n
-credential_recovery_module = portal.getDefaultModule(\'Credential Recovery\')\n
-\n
-result = credential_recovery_module.searchFolder(portal_type=\'Credential Recovery\',\n
- destination_decision_uid=person.getUid(),\n
- validation_state=\'submitted\')\n
-for credential_recovery in result:\n
- if isTransitionPossible(credential_recovery, \'accept\'):\n
- credential_recovery.getObject().accept()\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>person</string>
- <string>isTransitionPossible</string>
- <string>credential_recovery_module</string>
- <string>result</string>
- <string>_getiter_</string>
- <string>credential_recovery</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_acceptCredentialRecovery</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