[Erp5-report] r36575 fabien - in /experimental/bt5/erp5_credential: PortalTypePropertySheet...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jun 24 16:56:30 CEST 2010
Author: fabien
Date: Thu Jun 24 16:56:19 2010
New Revision: 36575
URL: http://svn.erp5.org?rev=36575&view=rev
Log:
Don't manage automatic transition using preference. This is now managed by adding or removing the interaction workflow credential_update_automatic_approve on the Credential Portal Types. This mean that each project that need this automatic transition should define explicitly this workflow on the credential Portal Type.
This makes the preference useless, so remove it.
Added:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions/
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions/credential_automatic_approve.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts/
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts/Credential_approve.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/variables.xml
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/worklists.xml
Modified:
experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
experimental/bt5/erp5_credential/bt/revision
experimental/bt5/erp5_credential/bt/template_action_path_list
experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list
experimental/bt5/erp5_credential/bt/template_property_sheet_id_list
experimental/bt5/erp5_credential/bt/template_workflow_id_list
Modified: experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml?rev=36575&r1=36574&r2=36575&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -2,7 +2,4 @@
<portal_type id="Person">
<item>DefaultCredentialQuestion</item>
</portal_type>
- <portal_type id="System Preference">
- <item>CredentialPreference</item>
- </portal_type>
</property_sheet_list>
\ No newline at end of file
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>creation_guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string>When this workflow is set on Credential Update or Credential Request, it will automatically approve it without requesting any review from another user.\r\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>groups</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>credential_automatic_approve_interraction_workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>manager_bypass</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Credential Automatic Approve</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Interaction" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>interactions</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions/credential_automatic_approve.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions/credential_automatic_approve.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions/credential_automatic_approve.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/interactions/credential_automatic_approve.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,0 +1,96 @@
+<?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>approve() transition will be automatically called after submit without any human review.</string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>credential_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>
+ <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>
+</ZopeData>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>scripts</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts/Credential_approve.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts/Credential_approve.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts/Credential_approve.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/scripts/Credential_approve.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,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_automatic_approve_interraction_workflow/variables.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/variables.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/variables.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/variables.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Variables" module="Products.DCWorkflow.Variables"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>variables</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/worklists.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/worklists.xml?rev=36575&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/worklists.xml (added)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_automatic_approve_interraction_workflow/worklists.xml [utf8] Thu Jun 24 16:56:19 2010
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>worklists</string> </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=36575&r1=36574&r2=36575&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Thu Jun 24 16:56:19 2010
@@ -1 +1 @@
-83
\ No newline at end of file
+84
\ No newline at end of file
Modified: experimental/bt5/erp5_credential/bt/template_action_path_list
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/template_action_path_list?rev=36575&r1=36574&r2=36575&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_action_path_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_action_path_list [utf8] Thu Jun 24 16:56:19 2010
@@ -5,5 +5,4 @@ Credential Request Module | view
Credential Request | view
Credential Update Module | view
Credential Update | view
-Person | credential
-System Preference | credential_preference
\ No newline at end of file
+Person | credential
\ No newline at end of file
Modified: experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list?rev=36575&r1=36574&r2=36575&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_portal_type_property_sheet_list [utf8] Thu Jun 24 16:56:19 2010
@@ -1,2 +1 @@
-Person | DefaultCredentialQuestion
-System Preference | CredentialPreference
\ No newline at end of file
+Person | DefaultCredentialQuestion
\ No newline at end of file
Modified: experimental/bt5/erp5_credential/bt/template_property_sheet_id_list
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/template_property_sheet_id_list?rev=36575&r1=36574&r2=36575&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_property_sheet_id_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_property_sheet_id_list [utf8] Thu Jun 24 16:56:19 2010
@@ -1,3 +1,2 @@
CredentialQuestion
-CredentialPreference
DefaultCredentialQuestion
\ No newline at end of file
Modified: experimental/bt5/erp5_credential/bt/template_workflow_id_list
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/template_workflow_id_list?rev=36575&r1=36574&r2=36575&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_workflow_id_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_workflow_id_list [utf8] Thu Jun 24 16:56:19 2010
@@ -1,2 +1,3 @@
+credential_automatic_approve_interraction_workflow
credential_interaction_workflow
credential_validation_workflow
\ No newline at end of file
More information about the Erp5-report
mailing list