# HG changeset patch # User Sylvain Thénault # Date 1320226430 -3600 # Node ID 27ab1649bd719d435648049d41d167b5d80ba9ab # Parent 81794aa0c8b401957bc14e3bcb490c618c4b75b7 [old table view] drop duplicated method diff -r 81794aa0c8b4 -r 27ab1649bd71 web/views/tableview.py --- a/web/views/tableview.py Wed Nov 02 10:33:33 2011 +0100 +++ b/web/views/tableview.py Wed Nov 02 10:33:50 2011 +0100 @@ -944,7 +944,16 @@ self.w(u'\n') def page_navigation_url(self, navcomp, path, params): + """Build an url to the current view using the attributes + + :param navcomp: a NavigationComponent to call an url method on. + :param path: expected to be json here ? + :param params: params to give to build_url method + + this is called by :class:`cubiweb.web.component.NavigationComponent` + """ if hasattr(self, 'divid'): + # XXX this assert a single call params['divid'] = self.divid params['vid'] = self.__regid__ return navcomp.ajax_page_url(**params) @@ -1024,21 +1033,6 @@ def get_rows(self): return self.cw_rset - def page_navigation_url(self, navcomp, path, params): - """Build an url to the current view using the attributes - - :param navcomp: a NavigationComponent to call an url method on. - :param path: expected to be json here ? - :param params: params to give to build_url method - - this is called by :class:`cubiweb.web.component.NavigationComponent` - """ - if hasattr(self, 'divid'): - # XXX this assert a single call - params['divid'] = self.divid - params['vid'] = self.__regid__ - return navcomp.ajax_page_url(**params) - @htmlescape @jsonize @limitsize(10)