[Erp5-report] r8664 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jul 21 13:57:55 CEST 2006
Author: kevin
Date: Fri Jul 21 13:57:52 2006
New Revision: 8664
URL: http://svn.erp5.org?rev=8664&view=rev
Log:
Always return a path, even for website root.
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml?rev=8664&r1=8663&r2=8664&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getDocumentPhysicalPath.xml Fri Jul 21 13:57:52 2006
@@ -70,11 +70,15 @@
<key> <string>_body</string> </key>
<value> <string>if reference_path is None:\n
reference_path = context\n
+\n
section = reference_path.WebSite_getSectionValue()\n
document = context.WebSite_getDocumentValue()\n
+\n
if section is not None and document is not None:\n
return "%s/%s" % (section.WebSite_getUrl(), document.getRelativeUrl())\n
-return None\n
+\n
+# We are at the website root\n
+return context.WebSite_getUrl()\n
</string> </value>
</item>
<item>
More information about the Erp5-report
mailing list