Return "" when there is no info/action set
authorSverre Rabbelier <srabbelier@gmail.com>
Thu, 12 Mar 2009 13:36:36 +0000
changeset 1803 d516eb26985e
parent 1802 407000879987
child 1804 e151c2039a98
Return "" when there is no info/action set Patch by: Sverre Rabbelier
app/soc/logic/lists.py
--- a/app/soc/logic/lists.py	Thu Mar 12 13:35:35 2009 +0000
+++ b/app/soc/logic/lists.py	Thu Mar 12 13:36:36 2009 +0000
@@ -144,6 +144,9 @@
     """Returns additional info on the current row item in the current list.
     """
 
+    if 'info' not in self._content:
+      return ""
+
     action, args = self.get('info')
     return action(self._row_data, args)
 
@@ -151,5 +154,8 @@
     """Returns the redirect for the current row item in the current list.
     """
 
+    if 'action' not in self._content:
+      return ""
+
     action, args = self.get('action')
     return action(self._row_data, args)