[Erp5-report] r41620 fx.algrain - in /erp5/trunk/bt5/erp5_credential: ActionTemplateItem/po...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Dec 21 17:24:23 CET 2010


Author: fx.algrain
Date: Tue Dec 21 17:24:22 2010
New Revision: 41620

URL: http://svn.erp5.org?rev=41620&view=rev
Log:
Fix "jump to" on  person : best performance and standard (tested) API

Added:
    erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_update.xml
Modified:
    erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_request.xml
    erp5/trunk/bt5/erp5_credential/bt/revision
    erp5/trunk/bt5/erp5_credential/bt/template_action_path_list

Modified: erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_request.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_request.xml?rev=41620&r1=41619&r2=41620&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_request.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_request.xml [utf8] Tue Dec 21 17:24:22 2010
@@ -75,7 +75,11 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:here.Person_getCredentialRequestUrl()</string> </value>
+            <value> <string encoding="cdata"><![CDATA[
+
+string:${object_url}/Base_jumpToRelatedObject?base_category=destination_decision&portal_type=Credential+Request
+
+]]></string> </value>
         </item>
       </dictionary>
     </pickle>
@@ -88,7 +92,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>python:here.getDestinationDecisionRelated(portal_type=\'Credential Request\') is not None</string> </value>
+            <value> <string>python: portal.Base_checkPermission(\'credential_request_module\', \'View\')</string> </value>
         </item>
       </dictionary>
     </pickle>

Added: erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_update.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_update.xml?rev=41620&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_update.xml (added)
+++ erp5/trunk/bt5/erp5_credential/ActionTemplateItem/portal_types/Person/jump_to_credential_update.xml [utf8] Tue Dec 21 17:24:22 2010
@@ -0,0 +1,100 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </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_jump</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_jump</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+            </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>jump_to_credential_update</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>30.2</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>Credential Update</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+string:${object_url}/Base_jumpToRelatedObject?base_category=destination_decision&portal_type=Credential+Update
+
+]]></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>python: portal.Base_checkPermission(\'credential_update_module\', \'View\')</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/bt/revision?rev=41620&r1=41619&r2=41620&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/bt/revision [utf8] Tue Dec 21 17:24:22 2010
@@ -1 +1 @@
-321
\ No newline at end of file
+322
\ No newline at end of file

Modified: erp5/trunk/bt5/erp5_credential/bt/template_action_path_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/bt/template_action_path_list?rev=41620&r1=41619&r2=41620&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/bt/template_action_path_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/bt/template_action_path_list [utf8] Tue Dec 21 17:24:22 2010
@@ -8,4 +8,5 @@ Credential Update Module | view
 Credential Update | view
 Person | credential
 Person | jump_to_credential_request
+Person | jump_to_credential_update
 System Preference | credential_preference
\ No newline at end of file



More information about the Erp5-report mailing list