cleanup tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 19 Feb 2009 23:32:51 +0100
branchtls-sprint
changeset 873 3d9df99b0bfa
parent 872 78f03d6a1505
child 874 90d98d80af82
cleanup
view.py
web/views/navigation.py
--- a/view.py	Thu Feb 19 23:32:46 2009 +0100
+++ b/view.py	Thu Feb 19 23:32:51 2009 +0100
@@ -369,12 +369,12 @@
             self.category = 'startupview'
 
     def startup_rql(self):
-        """return some rql to be executedif the result set is None"""
+        """return some rql to be executed if the result set is None"""
         return self.default_rql
 
     def call(self, **kwargs):
-        """override call to execute rql returned by the .startup_rql
-        method if necessary
+        """override call to execute rql returned by the .startup_rql method if
+        necessary
         """
         if self.rset is None:
             self.rset = self.req.execute(self.startup_rql())
@@ -383,8 +383,8 @@
             self.wview(self.id, rset, row=i, **kwargs)
 
     def url(self):
-        """return the url associated with this view. We can omit rql if we
-        are on a result set on which we do not apply.
+        """return the url associated with this view. We can omit rql if we are
+        on a result set on which we do not apply.
         """
         if not self.__select__(self.req, self.rset):
             return self.build_url(vid=self.id)
--- a/web/views/navigation.py	Thu Feb 19 23:32:46 2009 +0100
+++ b/web/views/navigation.py	Thu Feb 19 23:32:51 2009 +0100
@@ -146,7 +146,7 @@
 
 
 def limit_rset_using_paged_nav(self, req, rset, w, forcedisplay=False,
-                               show_all_option=True, page_size = None):
+                               show_all_option=True, page_size=None):
     showall = forcedisplay or req.form.get('__force_display') is not None
     nav = not showall and self.vreg.select_component('navigation', req, rset,
                                                      page_size=page_size)