# HG changeset patch # User Sylvain Thénault # Date 1284629215 -7200 # Node ID 936e98213598a4a9c43614d1c4c9f3b9cb9d6a3e # Parent 30b6beb3882004d075046786c866e3b742bd5f7b [table view] use get instead of has_key so one can specify he doesn't want actions or filter diff -r 30b6beb38820 -r 936e98213598 web/views/tableview.py --- a/web/views/tableview.py Thu Sep 16 11:26:08 2010 +0200 +++ b/web/views/tableview.py Thu Sep 16 11:26:55 2010 +0200 @@ -140,11 +140,11 @@ if mainindex is None: displayfilter, displayactions = False, False else: - if displayfilter is None and 'displayfilter' in req.form: + if displayfilter is None and req.form.get('displayfilter'): displayfilter = True if req.form['displayfilter'] == 'shown': hidden = False - if displayactions is None and 'displayactions' in req.form: + if displayactions is None and req.form.get('displayactions'): displayactions = True displaycols = self.displaycols(displaycols, headers) fromformfilter = 'fromformfilter' in req.form