Exemple #1
0
    def dag_node(self, key, term):
        dn = DagNode()
        dn._node_key = key
        dn._object_key = key

        vt = VocTerm()
        vt.term = term

        dn.vocterm = vt
        return dn
Exemple #2
0
 def dag_node(self, key, term):
     dn = DagNode()
     dn._node_key = key
     dn._object_key = key
     
     vt = VocTerm()
     vt.term = term
     
     dn.vocterm = vt
     return dn
Exemple #3
0
    def tree_node(self, key, term):
        dn = DagNode()
        dn._object_key = key

        vt = VocTerm()
        vt.term = term

        dn.vocterm = vt

        tn = TreeNode(dn)
        return tn
Exemple #4
0
 def tree_node(self, key, term):
     dn = DagNode()
     dn._object_key = key
     
     vt = VocTerm()
     vt.term = term
     
     dn.vocterm = vt
     
     tn = TreeNode(dn)
     return tn