# HG changeset patch # User Sverre Rabbelier # Date 1236289098 0 # Node ID 2b28763da7a412c63535da6ae012b7f5b4761bd5 # Parent 80411f57f31aa0dcf0cc6ced16d9ba493cad043d Add item info to the list iterator Patch by: Sverre Rabbelier diff -r 80411f57f31a -r 2b28763da7a4 app/soc/logic/lists.py --- a/app/soc/logic/lists.py Thu Mar 05 19:21:43 2009 +0000 +++ b/app/soc/logic/lists.py Thu Mar 05 21:38:18 2009 +0000 @@ -140,6 +140,13 @@ return self._row_data + def info(self): + """Returns additional info on the current row item in the current list. + """ + + action, args = self.get('info') + return action(self._row_data, args) + def redirect(self): """Returns the redirect for the current row item in the current list. """ diff -r 80411f57f31a -r 2b28763da7a4 app/soc/views/helper/params.py --- a/app/soc/views/helper/params.py Thu Mar 05 19:21:43 2009 +0000 +++ b/app/soc/views/helper/params.py Thu Mar 05 21:38:18 2009 +0000 @@ -250,6 +250,7 @@ new_params['list_params'] = { 'list_action': 'action', 'list_description': 'description', + 'list_info': 'info', 'list_main': 'main', 'list_pagination': 'pagination', 'list_row': 'row',