Add item info to the list iterator
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 05 Mar 2009 21:38:18 +0000
changeset 1679 2b28763da7a4
parent 1678 80411f57f31a
child 1680 fbf8101f6eff
Add item info to the list iterator Patch by: Sverre Rabbelier
app/soc/logic/lists.py
app/soc/views/helper/params.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.
     """
--- 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',