# HG changeset patch # User Sverre Rabbelier # Date 1236864996 0 # Node ID d516eb26985eb6f6a127af817981b44f30d23535 # Parent 407000879987f253c1d5177d8392f433d6e269b4 Return "" when there is no info/action set Patch by: Sverre Rabbelier diff -r 407000879987 -r d516eb26985e 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)