web/component.py
branchstable
changeset 8726 e08ab56ea2ac
parent 8190 2a3c1b787688
child 8728 75be9de9d68e
equal deleted inserted replaced
8723:d2472948da9c 8726:e08ab56ea2ac
   106         if stop is not None:
   106         if stop is not None:
   107             params[self.stop_param] = stop
   107             params[self.stop_param] = stop
   108         view = self.cw_extra_kwargs.get('view')
   108         view = self.cw_extra_kwargs.get('view')
   109         if view is not None and hasattr(view, 'page_navigation_url'):
   109         if view is not None and hasattr(view, 'page_navigation_url'):
   110             url = view.page_navigation_url(self, path, params)
   110             url = view.page_navigation_url(self, path, params)
   111         elif path == 'json':
   111         elif path in ('json', 'ajax'):
       
   112             # 'ajax' is the new correct controller, but the old 'json'
       
   113             # controller should still be supported
   112             url = self.ajax_page_url(**params)
   114             url = self.ajax_page_url(**params)
   113         else:
   115         else:
   114             url = self._cw.build_url(path, **params)
   116             url = self._cw.build_url(path, **params)
   115         # XXX hack to avoid opening a new page containing the evaluation of the
   117         # XXX hack to avoid opening a new page containing the evaluation of the
   116         # js expression on ajax call
   118         # js expression on ajax call