[Erp5-report] r8703 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Jul 23 18:06:05 CEST 2006
Author: kevin
Date: Sun Jul 23 18:05:57 2006
New Revision: 8703
URL: http://svn.erp5.org?rev=8703&view=rev
Log:
Don't let the script crash if no default document found
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDefaultDocument.xml
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDefaultDocument.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDefaultDocument.xml?rev=8703&r1=8702&r2=8703&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDefaultDocument.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDefaultDocument.xml Sun Jul 23 18:05:57 2006
@@ -68,7 +68,10 @@
</item>
<item>
<key> <string>_body</string> </key>
- <value> <string>return context.WebSite_getDefaultDocumentValue().WebSite_getUrl()\n
+ <value> <string>default_document = context.WebSite_getDefaultDocumentValue()\n
+if default_document:\n
+ return default_document.WebSite_getUrl()\n
+return None\n
</string> </value>
</item>
<item>
@@ -113,6 +116,8 @@
<tuple>
<string>_getattr_</string>
<string>context</string>
+ <string>default_document</string>
+ <string>None</string>
</tuple>
</value>
</item>
More information about the Erp5-report
mailing list