Commit ec052bdc authored by Nicolas Dumazet's avatar Nicolas Dumazet

Correct catalog keyword


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34034 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7730b311
......@@ -297,10 +297,12 @@ class Resource(XMLMatrix, Variated):
return method(context)
if context is None:
transformation_list = self.portal_catalog(portal_type="Transformation",
resource_category_uid=self.getUid(),
transformation_list = self.portal_catalog(
portal_type="Transformation",
resource_relative_url=self.getRelativeUrl(),
sort_on=[('version', 'descending')],
limit=1)
limit=1
)
if len(transformation_list) > 0:
return transformation_list[0].getObject()
return None
......
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