web/views/actions.py
changeset 8128 0a927fe4541b
parent 7990 a673d1d9a738
child 8190 2a3c1b787688
equal deleted inserted replaced
8125:7070250bf50d 8128:0a927fe4541b
   128 
   128 
   129     def url(self):
   129     def url(self):
   130         params = self._cw.form.copy()
   130         params = self._cw.form.copy()
   131         for param in ('vid', '__message') + controller.NAV_FORM_PARAMETERS:
   131         for param in ('vid', '__message') + controller.NAV_FORM_PARAMETERS:
   132             params.pop(param, None)
   132             params.pop(param, None)
   133         if self._cw.json_request:
   133         if self._cw.ajax_request:
   134             path = 'view'
   134             path = 'view'
   135             if self.cw_rset is not None:
   135             if self.cw_rset is not None:
   136                 params = {'rql': self.cw_rset.printable_rql()}
   136                 params = {'rql': self.cw_rset.printable_rql()}
   137         else:
   137         else:
   138             path = self._cw.relative_path(includeparams=False)
   138             path = self._cw.relative_path(includeparams=False)