[Erp5-report] r35885 fabien - in /experimental/bt5/erp5_credential: ActionTemplateItem/port...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jun 2 11:14:42 CEST 2010
Author: fabien
Date: Wed Jun 2 11:14:33 2010
New Revision: 35885
URL: http://svn.erp5.org?rev=35885&view=rev
Log:
add credential system preference. Pass the automatic transition only if the related property in the Preference is checked.
Added:
experimental/bt5/erp5_credential/ActionTemplateItem/portal_types/System%20Preference/
experimental/bt5/erp5_credential/ActionTemplateItem/portal_types/System%20Preference/credential_preference.xml
experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/
experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialPreference.py
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential/
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential.xml
experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential/my_preferred_automatic_approve_credential_request.xml
Modified:
experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/automatic_approve_credential_request.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
Added: experimental/bt5/erp5_credential/ActionTemplateItem/portal_types/System%20Preference/credential_preference.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/ActionTemplateItem/portal_types/System%2520Preference/credential_preference.xml?rev=35885&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/ActionTemplateItem/portal_types/System%20Preference/credential_preference.xml (added)
+++ experimental/bt5/erp5_credential/ActionTemplateItem/portal_types/System%20Preference/credential_preference.xml [utf8] Wed Jun 2 11:14:33 2010
@@ -1,0 +1,91 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>action</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+ </value>
+ </item>
+ <item>
+ <key> <string>categories</string> </key>
+ <value>
+ <tuple>
+ <string>action_type/object_view</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>category</string> </key>
+ <value> <string>object_view</string> </value>
+ </item>
+ <item>
+ <key> <string>condition</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>icon</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>credential_preference</string> </value>
+ </item>
+ <item>
+ <key> <string>permissions</string> </key>
+ <value>
+ <tuple>
+ <string>View</string>
+ </tuple>
+ </value>
+ </item>
+ <item>
+ <key> <string>portal_type</string> </key>
+ <value> <string>Action Information</string> </value>
+ </item>
+ <item>
+ <key> <string>priority</string> </key>
+ <value> <float>5.0</float> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Credential</string> </value>
+ </item>
+ <item>
+ <key> <string>visible</string> </key>
+ <value> <int>1</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>text</string> </key>
+ <value> <string>string:${object_url}/SystemPreference_viewCredential</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml?rev=35885&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml (added)
+++ experimental/bt5/erp5_credential/PortalTypePropertySheetTemplateItem/property_sheet_list.xml [utf8] Wed Jun 2 11:14:33 2010
@@ -1,0 +1,5 @@
+<property_sheet_list>
+ <portal_type id="System Preference">
+ <item>CredentialPreference</item>
+ </portal_type>
+</property_sheet_list>
Added: experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialPreference.py
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialPreference.py?rev=35885&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialPreference.py (added)
+++ experimental/bt5/erp5_credential/PropertySheetTemplateItem/CredentialPreference.py [utf8] Wed Jun 2 11:14:33 2010
@@ -1,0 +1,49 @@
+# -*- coding: utf-8 -*-
+#############################################################################
+#
+# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
+# Fabien MORIN <fabien at nexedi.com>
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+##############################################################################
+
+from Products.ERP5Type import Permissions
+
+class CredentialPreference:
+ """
+ This property sheet defines the user configurable taxonomy.
+ """
+
+ _properties = (
+ { 'id' : 'preferred_automatic_approve_credential_request',
+ 'description' : 'If it\'s checked, the approve transition will be '\
+ 'automatically passed without human review',
+ 'type' : 'boolean',
+ 'write_permission': Permissions.ManageProperties,
+ 'default' : False,
+ 'preference' : 1,
+ 'mode' : '' },
+ )
+
+# vim: shiftwidth=2
+
Added: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential.xml?rev=35885&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential.xml (added)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential.xml [utf8] Wed Jun 2 11:14:33 2010
@@ -1,0 +1,155 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ERP5Form" module="Products.ERP5Form.Form"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <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/>
+ </value>
+ </item>
+ </dictionary>
+ </state>
+ </object>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>action</string> </key>
+ <value> <string>Base_edit</string> </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>edit_order</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
+ <key> <string>encoding</string> </key>
+ <value> <string>UTF-8</string> </value>
+ </item>
+ <item>
+ <key> <string>enctype</string> </key>
+ <value> <string>multipart/form-data</string> </value>
+ </item>
+ <item>
+ <key> <string>group_list</string> </key>
+ <value>
+ <list>
+ <string>left</string>
+ <string>right</string>
+ <string>center</string>
+ <string>bottom</string>
+ <string>hidden</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>groups</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>bottom</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
+ <key> <string>center</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
+ <key> <string>hidden</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ <item>
+ <key> <string>left</string> </key>
+ <value>
+ <list>
+ <string>my_preferred_automatic_approve_credential_request</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>right</string> </key>
+ <value>
+ <list/>
+ </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>SystemPreference_viewCredential</string> </value>
+ </item>
+ <item>
+ <key> <string>method</string> </key>
+ <value> <string>POST</string> </value>
+ </item>
+ <item>
+ <key> <string>name</string> </key>
+ <value> <string>SystemPreference_viewCredential</string> </value>
+ </item>
+ <item>
+ <key> <string>pt</string> </key>
+ <value> <string>form_view</string> </value>
+ </item>
+ <item>
+ <key> <string>row_length</string> </key>
+ <value> <int>4</int> </value>
+ </item>
+ <item>
+ <key> <string>stored_encoding</string> </key>
+ <value> <string>UTF-8</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Credential Preferences</string> </value>
+ </item>
+ <item>
+ <key> <string>unicode_mode</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>update_action</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>update_action_title</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential/my_preferred_automatic_approve_credential_request.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential/my_preferred_automatic_approve_credential_request.xml?rev=35885&view=auto
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential/my_preferred_automatic_approve_credential_request.xml (added)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/SystemPreference_viewCredential/my_preferred_automatic_approve_credential_request.xml [utf8] Wed Jun 2 11:14:33 2010
@@ -1,0 +1,99 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>delegated_list</string> </key>
+ <value>
+ <list>
+ <string>title</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>my_preferred_automatic_approve_credential_request</string> </value>
+ </item>
+ <item>
+ <key> <string>message_values</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>external_validator_failed</string> </key>
+ <value> <string>The input failed the external validator.</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ <item>
+ <key> <string>overrides</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>field_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>form_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>target</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ <item>
+ <key> <string>tales</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>field_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>form_id</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>target</string> </key>
+ <value> <string></string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ <item>
+ <key> <string>values</string> </key>
+ <value>
+ <dictionary>
+ <item>
+ <key> <string>field_id</string> </key>
+ <value> <string>my_checkbox</string> </value>
+ </item>
+ <item>
+ <key> <string>form_id</string> </key>
+ <value> <string>Base_viewFieldLibrary</string> </value>
+ </item>
+ <item>
+ <key> <string>target</string> </key>
+ <value> <string>Click to edit the target</string> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Is Preferred Automatic Approve Credential Request</string> </value>
+ </item>
+ </dictionary>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/automatic_approve_credential_request.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/automatic_approve_credential_request.xml?rev=35885&r1=35884&r2=35885&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/automatic_approve_credential_request.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/WorkflowTemplateItem/portal_workflow/credential_interaction_workflow/interactions/automatic_approve_credential_request.xml [utf8] Wed Jun 2 11:14:33 2010
@@ -48,7 +48,7 @@
<item>
<key> <string>guard</string> </key>
<value>
- <none/>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
@@ -92,4 +92,38 @@
</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/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=35885&r1=35884&r2=35885&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Wed Jun 2 11:14:33 2010
@@ -1,1 +1,1 @@
-36
+37
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=35885&r1=35884&r2=35885&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/template_action_path_list [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/template_action_path_list [utf8] Wed Jun 2 11:14:33 2010
@@ -4,4 +4,5 @@
Credential Request Module | view
Credential Request | view
Credential Update Module | view
-Credential Update | view
+Credential Update | view
+System Preference | credential_preference
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=35885&r1=35884&r2=35885&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] Wed Jun 2 11:14:33 2010
@@ -1,0 +1,1 @@
+System Preference | CredentialPreference
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=35885&r1=35884&r2=35885&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] Wed Jun 2 11:14:33 2010
@@ -1,1 +1,2 @@
-CredentialQuestion
+CredentialQuestion
+CredentialPreference
More information about the Erp5-report
mailing list