- if key != 'position' :
- if reverse :
- toggleImg = getattr(context, 'arrowDown.gif')
- alt = 'descending sort'
- else :
- toggleImg = getattr(context, 'arrowUp.gif')
- alt = 'ascending sort'
- query = make_query(key=column['key'], reverse = not reverse)
- else :
- toggleImg = getattr(context, 'arrowUp.gif')
- alt = 'ascending sort'
- query = make_query(key=column['key'])
- images.append( {'src' : toggleImg.absolute_url(), 'alt' : alt} )
- else :
- if key != 'position' :
- query = make_query(key=column['key'], reverse = reverse)
- else :
- query = make_query(key=column['key'])
-
- column['url'] = '%s?%s' % (target, query)
- column['images'] = images
+ if key != 'position' :
+ if reverse :
+ toggleImg = getattr(context, 'arrowDown.gif')
+ alt = 'descending sort'
+ else :
+ toggleImg = getattr(context, 'arrowUp.gif')
+ alt = 'ascending sort'
+ query = make_query(key=column['key'], reverse = not reverse)
+ else :
+ toggleImg = getattr(context, 'arrowUp.gif')
+ alt = 'ascending sort'
+ query = make_query(key=column['key'])
+ images.append( {'src' : toggleImg.absolute_url(), 'alt' : alt} )
+ else :
+ if key != 'position' :
+ query = make_query(key=column['key'], reverse = reverse)
+ else :
+ query = make_query(key=column['key'])
+
+ column['url'] = '%s?%s' % (target, query)
+ column['images'] = images