[autopep8] E302 - Add missing 2 blank lines
authorNoe Gaumont <ngaumont@logilab.fr>
Fri, 21 Jun 2019 11:19:06 +0200
changeset 62 1efebbfb28ea
parent 61 4850d6de0db2
child 63 f7dc6e080aa6
[autopep8] E302 - Add missing 2 blank lines
cubicweb_treeview/adapters.py
cubicweb_treeview/views/formwidgets.py
cubicweb_treeview/views/treeview.py
test/pytestconf.py
test/test_treeview.py
--- a/cubicweb_treeview/adapters.py	Fri Jun 21 11:19:06 2019 +0200
+++ b/cubicweb_treeview/adapters.py	Fri Jun 21 11:19:06 2019 +0200
@@ -18,6 +18,7 @@
 
 from cubicweb.entities.adapters import ITreeAdapter
 
+
 class TVITreeAdapter(ITreeAdapter):
     def is_editable_leaf(self):
         return len(self.same_type_children()) == 0
@@ -25,6 +26,7 @@
     def editable_children(self, entities=False):
         return self.same_type_children(entities=entities)
 
+
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__, (TVITreeAdapter,))
     vreg.register_and_replace(TVITreeAdapter, ITreeAdapter)
--- a/cubicweb_treeview/views/formwidgets.py	Fri Jun 21 11:19:06 2019 +0200
+++ b/cubicweb_treeview/views/formwidgets.py	Fri Jun 21 11:19:06 2019 +0200
@@ -25,6 +25,7 @@
 from cubicweb import tags
 from cubicweb.web import formwidgets as fwdgs
 
+
 class TreeViewWidget(fwdgs.FieldWidget):
     """form widget to link to keywords of a given classification"""
 
--- a/cubicweb_treeview/views/treeview.py	Fri Jun 21 11:19:06 2019 +0200
+++ b/cubicweb_treeview/views/treeview.py	Fri Jun 21 11:19:06 2019 +0200
@@ -27,6 +27,7 @@
 from cubicweb.web.views import baseviews, treeview
 from cubicweb.uilib import cut
 
+
 class TVTreeViewItemView(treeview.TreeViewItemView):
 
     def _is_leaf(self, itree):
@@ -94,6 +95,7 @@
                        treeid=treeid, initial_load=False, **morekwargs)
         w(u'</li>')
 
+
 class TVDefaultTreeViewItemView(treeview.DefaultTreeViewItemView):
 
     def cell_call(self, row, col, vid='oneline', treeid=None, **morekwargs):
@@ -106,6 +108,7 @@
             liclasses.append('last')
         self.w(u'<li class="%s">%s</li>' % (u' '.join(liclasses), itemview))
 
+
 class TVTreeViewEditItemView(TVTreeViewItemView):
     """keeps track of which branches to open according to the X rtype
     Y value given to the TreeView
@@ -132,6 +135,7 @@
     def _children(self, itree):
         return itree.editable_children(entities=False)
 
+
 class TVTreeEditView(treeview.TreeView):
     __regid__ = 'treeview_edit'
     subvid = 'oneline_edit'
@@ -147,6 +151,7 @@
             form.pop('fname')
         return super(TVTreeEditView, self)._init_params(subvid, treeid, initial_load, initial_thru_ajax, morekwargs)
 
+
 class TVNotTreeEditView(treeview.DefaultTreeViewItemView):
     __regid__ = 'treeview_edit'
     __select__ = ~adaptable('ITree')
@@ -155,6 +160,7 @@
     def cell_call(self, row, col, vid='oneline', treeid=None, **morekwargs):
         return u''
 
+
 class TVNotTreeviewOneLineEditView(baseviews.InContextView):
     __regid__ = 'oneline_edit'
     __select__ = ~adaptable('ITree')
@@ -163,6 +169,7 @@
                   leavesonly, related, required, level):
         return u''
 
+
 class TVTreeviewOneLineEditView(baseviews.InContextView):
     __regid__ = 'oneline_edit'
     __select__ = adaptable('ITree')
@@ -210,6 +217,7 @@
             return itree.level
         return None
 
+
 def registration_callback(vreg):
     vreg.register_all(globals().values(), __name__, (
         TVTreeViewItemView,
--- a/test/pytestconf.py	Fri Jun 21 11:19:06 2019 +0200
+++ b/test/pytestconf.py	Fri Jun 21 11:19:06 2019 +0200
@@ -23,6 +23,7 @@
 
 from logilab.common.pytest import PyTester
 
+
 def getlogin():
     """avoid usinng os.getlogin() because of strange tty / stdin problems
     (man 3 getlogin)
--- a/test/test_treeview.py	Fri Jun 21 11:19:06 2019 +0200
+++ b/test/test_treeview.py	Fri Jun 21 11:19:06 2019 +0200
@@ -17,6 +17,7 @@
 """cubicweb-treeview automatic tests"""
 from cubicweb.devtools.testlib import AutomaticWebTest
 
+
 class AutomaticWebTest(AutomaticWebTest):
     '''provides `to_test_etypes` and/or `list_startup_views` implementation
     to limit test scope