[Erp5-report] r41621 fx.algrain - /erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_s...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 21 17:24:40 CET 2010
Author: fx.algrain
Date: Tue Dec 21 17:24:39 2010
New Revision: 41621
URL: http://svn.erp5.org?rev=41621&view=rev
Log:
Fix "jump to" on person : best performance and standard (tested) API
Removed:
erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Person_getCredentialRequestUrl.xml
Removed: erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Person_getCredentialRequestUrl.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Person_getCredentialRequestUrl.xml?rev=41620&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Person_getCredentialRequestUrl.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/Person_getCredentialRequestUrl.xml (removed)
@@ -1,89 +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 encoding="cdata"><![CDATA[
-
-""" Return url of subscription request attach to current object.\n
-Usefull in jump list"""\n
-from ZTUtils import make_query\n
-\n
-result = context.portal_catalog(\n
- portal_type=\'Credential Request\',\n
- destination_decision_portal_type=\'Person\',\n
- destination_decision_uid=context.getUid()\n
- )\n
-\n
-length = len(result)\n
-if length==1:\n
- return result[0].absolute_url()\n
-elif length>1:\n
- return \'%s?%s\' % (context.credential_request_module.absolute_url(),\n
- make_query(reset=1,\n
- destination_decision_portal_type=\'Person\',\n
- destination_decision_uid=context.getUid())\n
- )\n
-
-
-]]></string> </value>
- </item>
- <item>
- <key> <string>_params</string> </key>
- <value> <string></string> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>Person_getCredentialRequestUrl</string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list