src/pyams_utils/interfaces/tree.py
changeset 288 d2798df7cb42
parent 28 95b0d06b702d
child 292 b338586588ad
equal deleted inserted replaced
287:b1d04fd782b6 288:d2798df7cb42
    11 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
    11 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
    12 # FOR A PARTICULAR PURPOSE.
    12 # FOR A PARTICULAR PURPOSE.
    13 #
    13 #
    14 ##############################################################################
    14 ##############################################################################
    15 
    15 
    16 
       
    17 # import standard packages
       
    18 
       
    19 # import Zope3 interfaces
       
    20 
       
    21 # import local interfaces
       
    22 
       
    23 # import Zope3 packages
       
    24 from zope.interface import Interface, Attribute
    16 from zope.interface import Interface, Attribute
    25 
       
    26 # import local packages
       
    27 
    17 
    28 
    18 
    29 class INode(Interface):
    19 class INode(Interface):
    30     """Tree node interface"""
    20     """Tree node interface"""
    31 
    21 
    32     context = Attribute("Node's context")
    22     context = Attribute("Node's context")
    33 
    23 
    34     label = Attribute("Node's label")
    24     label = Attribute("Node's label")
    35 
    25 
    36     css_class = Attribute("Node's CSS class")
    26     css_class = Attribute("Node's CSS class")
       
    27 
       
    28     order = Attribute("Node's order")
    37 
    29 
    38     def get_level(self):
    30     def get_level(self):
    39         """Get depth level of current node"""
    31         """Get depth level of current node"""
    40 
    32 
    41     def has_children(self, filter_value=None):
    33     def has_children(self, filter_value=None):