equal
deleted
inserted
replaced
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 |