# HG changeset patch # User Adrien Di Mascio # Date 1240556685 -7200 # Node ID 42f13c790f11c399fac6eeec45689c1c9ab6b6d3 # Parent f3d8a9228bd3819bf3308fcea391154dcdfcb521 fix bug in actions: action.row/col might be None and can't be passed directly to rset.get_entity diff -r f3d8a9228bd3 -r 42f13c790f11 web/views/actions.py --- a/web/views/actions.py Thu Apr 23 18:10:17 2009 +0200 +++ b/web/views/actions.py Fri Apr 24 09:04:45 2009 +0200 @@ -167,7 +167,7 @@ return super(ManagePermissionsAction, cls).registered(vreg) def url(self): - return self.rset.get_entity(self.row, self.col).absolute_url(vid='security') + return self.rset.get_entity(self.row or 0, self.col or 0).absolute_url(vid='security') class DeleteAction(Action): @@ -180,7 +180,7 @@ def url(self): if len(self.rset) == 1: - entity = self.rset.get_entity(self.row, self.col) + entity = self.rset.get_entity(self.row or 0, self.col or 0) return self.build_url(entity.rest_path(), vid='deleteconf') return self.build_url(rql=self.rset.printable_rql(), vid='deleteconf')