[Erp5-report] r26480 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 17 15:51:10 CEST 2009
Author: kazuhiko
Date: Fri Apr 17 15:51:08 2009
New Revision: 26480
URL: http://svn.erp5.org?rev=26480&view=rev
Log:
call hasFile() only if it exists.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_text_content.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_text_content.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_text_content.xml?rev=26480&r1=26479&r2=26480&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_text_content.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewFieldLibrary/my_text_content.xml [utf8] Fri Apr 17 15:51:08 2009
@@ -307,7 +307,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value> <string>python:(here.hasFile() and \'page\') or \'\'</string> </value>
+ <value> <string>python:(getattr(here, \'hasFile\', None) is not None and here.hasFile() and \'page\') or \'\'</string> </value>
</item>
</dictionary>
</pickle>
@@ -339,7 +339,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
- <value> <string>not:here/hasFile</string> </value>
+ <value> <string>python:getattr(here, \'hasFile\', None) is not None and not here.hasFile()</string> </value>
</item>
</dictionary>
</pickle>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=26480&r1=26479&r2=26480&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Fri Apr 17 15:51:08 2009
@@ -1,1 +1,1 @@
-1160
+1161
More information about the Erp5-report
mailing list