[Erp5-report] r39359 nicolas - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Oct 19 17:45:18 CEST 2010
Author: nicolas
Date: Tue Oct 19 17:45:17 2010
New Revision: 39359
URL: http://svn.erp5.org?rev=39359&view=rev
Log:
Remove getToolByName
Modified:
erp5/trunk/products/ERP5/Document/Document.py
Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=39359&r1=39358&r2=39359&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Document.py [utf8] Tue Oct 19 17:45:17 2010
@@ -639,7 +639,7 @@ class Document(DocumentExtensibleTravers
reference = self.getReference()
if not reference:
return
- catalog = getToolByName(self.getPortalObject(), 'portal_catalog')
+ catalog = self.getPortalObject().portal_catalog
res = catalog(reference=self.getReference(), sort_on=(('creation_date','ascending'),))
# XXX this should be security-unaware - delegate to script with proxy roles
return res[0].getLanguage() # XXX what happens if it is empty?
More information about the Erp5-report
mailing list