Commit 9e1c91c6 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Run pylint checker on plugin_dbui/navtree.py

parent 7a64a15d
""" the ``Node`` class to build navigation tree.
"""
import locale
from gluon import current
......@@ -27,7 +26,6 @@ class Node(object):
self.children = []
self.hidden = []
def add_child(self, text, cfg):
"""Add a child (leaf) to the node.
......@@ -43,7 +41,6 @@ class Node(object):
di = {'cfg': cfg, 'leaf': True, 'text': text}
self.children.append(di)
def add_children(self, leaves, func=None, hidden=[]):
"""Add children (leaves) to the node.
......@@ -82,7 +79,6 @@ class Node(object):
self.add_child(tr_leaf, func(leaf))
def get_node(self):
"""Get the dictionary defining the node.
......@@ -100,7 +96,6 @@ class Node(object):
"""
return {'text': self.text, 'children': self.children}
def sort_children(self):
"""sort children according to alphabetical order.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment