web/views/tableview.py
branchstable
changeset 6254 936e98213598
parent 6249 1729f53b3e42
child 6582 8eb7883b4223
equal deleted inserted replaced
6253:30b6beb38820 6254:936e98213598
   138         divid = divid or req.form.get('divid') or 'rs%s' % make_uid(id(self.cw_rset))
   138         divid = divid or req.form.get('divid') or 'rs%s' % make_uid(id(self.cw_rset))
   139         actions = list(actions)
   139         actions = list(actions)
   140         if mainindex is None:
   140         if mainindex is None:
   141             displayfilter, displayactions = False, False
   141             displayfilter, displayactions = False, False
   142         else:
   142         else:
   143             if displayfilter is None and 'displayfilter' in req.form:
   143             if displayfilter is None and req.form.get('displayfilter'):
   144                 displayfilter = True
   144                 displayfilter = True
   145                 if req.form['displayfilter'] == 'shown':
   145                 if req.form['displayfilter'] == 'shown':
   146                     hidden = False
   146                     hidden = False
   147             if displayactions is None and 'displayactions' in req.form:
   147             if displayactions is None and req.form.get('displayactions'):
   148                 displayactions = True
   148                 displayactions = True
   149         displaycols = self.displaycols(displaycols, headers)
   149         displaycols = self.displaycols(displaycols, headers)
   150         fromformfilter = 'fromformfilter' in req.form
   150         fromformfilter = 'fromformfilter' in req.form
   151         # if fromformfilter is true, this is an ajax call and we only want to
   151         # if fromformfilter is true, this is an ajax call and we only want to
   152         # replace the inner div, so don't regenerate everything under the if
   152         # replace the inner div, so don't regenerate everything under the if