Commit bf9ef05a authored by Bartek Górny's avatar Bartek Górny

fixed bug in method listing available displays

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19566 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 887df7a6
......@@ -262,7 +262,7 @@ class Image(File, OFSImage):
if id in ids:
ids.remove(id)
# Sort by desired photo surface area
ids.sort(lambda x,y,d=self._displays: cmp(d[x][0]*d[x][1], d[y][0]*d[y][1]))
ids.sort(lambda x,y,d=defaultdisplays: cmp(d[x][0]*d[x][1], d[y][0]*d[y][1]))
return ids
security.declareProtected('Access contents information', 'displayLinks')
......
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