[Erp5-report] r8268 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 30 17:35:21 CEST 2006
Author: vincent
Date: Fri Jun 30 17:35:20 2006
New Revision: 8268
URL: http://svn.erp5.org?rev=8268&view=rev
Log:
Revert the update of Base_getHelpUrl to avoid breaking compatibility with html style.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml?rev=8268&r1=8267&r2=8268&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml Fri Jun 30 17:35:20 2006
@@ -68,14 +68,14 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>help = context.getPortalType()\n
-if workflow_action is not None: # First, the workflow transition case.\n
- help = \'%s_%s\' % (help, workflow_action)\n
-elif current_action is not None: # Then, we are able to get the action.\n
- help = \'%s_%s\' % (help, current_action[\'id\'])\n
-elif dialog_id is not None: # Otherwise, get the form we are in.\n
- help = \'%s_%s\' % (help, dialog_id)\n
-# Otherwise again, just use the portal type as page name.\n
+ <value> <string>if context.REQUEST.has_key(\'workflow_action\'): # We are on a workflow transition\n
+ help = \'%s#%s\' % (getattr(getattr(context, form_id), \'form_action\'),context.REQUEST[\'workflow_action\'])\n
+elif action is not None:\n
+ help = \'%s#%s\' % (context.getPortalType(), action)\n
+elif form_id is not None:\n
+ help = \'%s_%s\' % (context.getPortalType(), form_id)\n
+else:\n
+ help = context.getPortalType()\n
return \'%s/%s\' % (context.portal_preferences.getPreferredHtmlStyleDocumentationBaseUrl(), help)\n
</string> </value>
</item>
@@ -99,7 +99,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>form_id=\'\', current_action=\'\', dialog_id=\'\', workflow_action=\'\'</string> </value>
+ <value> <string>form_id = None, action = None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -119,21 +119,20 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>4</int> </value>
+ <value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>form_id</string>
- <string>current_action</string>
- <string>dialog_id</string>
- <string>workflow_action</string>
+ <string>action</string>
<string>_getattr_</string>
<string>context</string>
+ <string>getattr</string>
+ <string>_getitem_</string>
<string>help</string>
<string>None</string>
- <string>_getitem_</string>
</tuple>
</value>
</item>
@@ -146,10 +145,8 @@
<key> <string>func_defaults</string> </key>
<value>
<tuple>
- <string></string>
- <string></string>
- <string></string>
- <string></string>
+ <none/>
+ <none/>
</tuple>
</value>
</item>
More information about the Erp5-report
mailing list