Exemple #1
0
def new_node(ntype, data, comment, parents, children, routine):
    new = node(ntype=ntype,
               data=data,
               comment=comment,
               parents=parents,
               children=children,
               routine=routine)
    view.print_subtree(new.get_roots())
Exemple #2
0
 def transact(self):
     if self.cl_args['l']:
         view.print_subtree(self.roots())
     if self.cl_args['n']:
         self.node(ntype=self.cl_args['<type>'],
                   ndata=self.cl_args['<data>'],
                   ncomment=self.cl_args['<comment>'],
                   nparents=(self.cl_args['parent'],))
Exemple #3
0
def new_node(ntype, data, comment, parents, children, routine):
    new = node(ntype=ntype,
               data=data,
               comment=comment,
               parents=parents,
               children=children,
               routine=routine)
    view.print_subtree(new.get_roots())
Exemple #4
0
 def transact(self):
     if self.cl_args['l']:
         view.print_subtree(self.roots())
     if self.cl_args['n']:
         self.node(ntype=self.cl_args['<type>'],
                   ndata=self.cl_args['<data>'],
                   ncomment=self.cl_args['<comment>'],
                   nparents=(self.cl_args['parent'], ))
Exemple #5
0
def view_node(name):
    n = node(name=util.str_to_int(name))
    roots = n.get_roots()
    view.print_subtree(roots)
Exemple #6
0
def view_node(name):
    n = node(name=util.str_to_int(name))
    roots = n.get_roots()
    view.print_subtree(roots)