app/soc/logic/lists.py
changeset 1803 d516eb26985e
parent 1679 2b28763da7a4
child 1807 1f8cde169f32
equal deleted inserted replaced
1802:407000879987 1803:d516eb26985e
   142 
   142 
   143   def info(self):
   143   def info(self):
   144     """Returns additional info on the current row item in the current list.
   144     """Returns additional info on the current row item in the current list.
   145     """
   145     """
   146 
   146 
       
   147     if 'info' not in self._content:
       
   148       return ""
       
   149 
   147     action, args = self.get('info')
   150     action, args = self.get('info')
   148     return action(self._row_data, args)
   151     return action(self._row_data, args)
   149 
   152 
   150   def redirect(self):
   153   def redirect(self):
   151     """Returns the redirect for the current row item in the current list.
   154     """Returns the redirect for the current row item in the current list.
   152     """
   155     """
   153 
   156 
       
   157     if 'action' not in self._content:
       
   158       return ""
       
   159 
   154     action, args = self.get('action')
   160     action, args = self.get('action')
   155     return action(self._row_data, args)
   161     return action(self._row_data, args)