[Erp5-report] r7693 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 12 12:21:40 CEST 2006
Author: kevin
Date: Mon Jun 12 12:21:38 2006
New Revision: 7693
URL: http://svn.erp5.org?rev=7693&view=rev
Log:
Use getattr() to reduce code lenght
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getListboxUrl.xml
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getListboxUrl.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getListboxUrl.xml?rev=7693&r1=7692&r2=7693&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getListboxUrl.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getListboxUrl.xml Mon Jun 12 12:21:38 2006
@@ -14,7 +14,9 @@
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
- <value> <string encoding="base64">bfINCg==</string> </value>
+ <value>
+ <none/>
+ </value>
</item>
<item>
<key> <string>Script_magic</string> </key>
@@ -70,7 +72,7 @@
if brain is not None:\n
o = brain.getObject()\n
url = \'%s/%s\' % (context.REQUEST[\'URL1\'], o.getRelativeUrl())\n
- if getattr(context.REQUEST, \'editable_mode\', None):\n
+ if context.REQUEST.has_key(\'editable_mode\') and context.REQUEST[\'editable_mode\']:\n
url = \'%s/view?editable_mode=%s\' % (url, context.REQUEST[\'editable_mode\'])\n
return url\n
</string> </value>
@@ -83,7 +85,7 @@
</item>
<item>
<key> <string>_filepath</string> </key>
- <value> <string>Script (Python):/erp5/portal_skins/erp5_web/WebSite_getListboxUrl</string> </value>
+ <value> <string>Script (Python):/nexedi/portal_skins/erp5_web/WebSite_getListboxUrl</string> </value>
</item>
<item>
<key> <string>_owner</string> </key>
@@ -127,7 +129,6 @@
<string>o</string>
<string>_getitem_</string>
<string>context</string>
- <string>getattr</string>
</tuple>
</value>
</item>
More information about the Erp5-report
mailing list