[old table view] drop duplicated method
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 02 Nov 2011 10:33:50 +0100
changeset 8042 27ab1649bd71
parent 8041 81794aa0c8b4
child 8043 c699f6edd067
[old table view] drop duplicated method
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'</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)