[Erp5-report] r38545 kazuhiko - /erp5/trunk/products/ERP5/Document/WebSection.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 22 16:19:19 CEST 2010


Author: kazuhiko
Date: Wed Sep 22 16:19:19 2010
New Revision: 38545

URL: http://svn.erp5.org?rev=38545&view=rev
Log:
even if the type based method is based on document's portal type, we still need a way to know Web Section, otherwise we will get the bad result like 'web_page_module/123/web_page_reference' instead of 'web_section_id/web_page_reference'.

Modified:
    erp5/trunk/products/ERP5/Document/WebSection.py

Modified: erp5/trunk/products/ERP5/Document/WebSection.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/WebSection.py?rev=38545&r1=38544&r2=38545&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/WebSection.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/WebSection.py [utf8] Wed Sep 22 16:19:19 2010
@@ -304,6 +304,7 @@ class WebSection(Domain, DocumentExtensi
         except KeyError:
           pass
 
+      document = document.getObject().__of__(self)
       result = document._getTypeBasedMethod('getPermanentURL',
                      fallback_script_id='WebSection_getPermanentURL')(document,
                          view=view)




More information about the Erp5-report mailing list