Commit 8f277ca9 authored by Jérome Perrin's avatar Jérome Perrin

small style changes, like 34768


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34785 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21f232e1
......@@ -745,9 +745,10 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, CachedConvertableMixin, S
"""
if not self.getReference():
return self
catalog = getToolByName(self, 'portal_catalog', None)
catalog = getToolByName(self, 'portal_catalog')
kw = dict(reference=self.getReference(), sort_on=(('version','descending'),))
if language is not None: kw['language'] = language
if language is not None:
kw['language'] = language
res = catalog(**kw)
original_language = self.getOriginalLanguage()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment