[Erp5-report] r19566 - /erp5/trunk/products/ERP5/Document/Image.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 28 22:15:37 CET 2008
Author: bartek
Date: Thu Feb 28 22:15:37 2008
New Revision: 19566
URL: http://svn.erp5.org?rev=19566&view=rev
Log:
fixed bug in method listing available displays
Modified:
erp5/trunk/products/ERP5/Document/Image.py
Modified: erp5/trunk/products/ERP5/Document/Image.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Image.py?rev=19566&r1=19565&r2=19566&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Image.py (original)
+++ erp5/trunk/products/ERP5/Document/Image.py Thu Feb 28 22:15:37 2008
@@ -262,7 +262,7 @@
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')
More information about the Erp5-report
mailing list