web/views/tableview.py
changeset 8042 27ab1649bd71
parent 8032 bcb87336c7d2
child 8046 bdd555df7a91
--- 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'</div>\n')
 
     def page_navigation_url(self, navcomp, path, params):
+        """Build an url to the current view using the <navcomp> 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 <navcomp> 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)