[tabs] improve pylint note :)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 28 Jan 2009 17:30:26 +0100
changeset 510 6b92504d77c1
parent 508 fab4e2cfe053
child 511 5df6588d7374
[tabs] improve pylint note :)
web/views/tabs.py
--- a/web/views/tabs.py	Wed Jan 28 17:28:08 2009 +0100
+++ b/web/views/tabs.py	Wed Jan 28 17:30:26 2009 +0100
@@ -22,6 +22,11 @@
 HTMLHead.prepend_post_inline_script = prepend_post_inline_script
 
 class LazyViewMixin(object):
+    """provides two convenience methods for the tab machinery
+    can also be used to lazy-load arbitrary views
+    caveat : lazyview is not recursive, i.e : you can't (successfully)
+    lazyload a view that in turns does the same
+    """
 
     def lazyview(self, vid, eid=None, show_spinbox=True, w=None):
         """a lazy version of wview
@@ -69,7 +74,7 @@
         selected_tabs = []
         for tab in tabs:
             try:
-                tabview = self.vreg.select_view(tab, self.req, self.rset)
+                self.vreg.select_view(tab, self.req, self.rset)
                 selected_tabs.append(tab)
             except NoSelectableObject:
                 continue