示例#1
0
 def call_fut(self, descendant, ancestors):
     from adhocracy_core.graph import Graph
     context = testing.DummyResource(__objectmap__=self.context.__objectmap)
     graph = Graph(context)
     return Graph.is_in_subtree(graph, descendant, ancestors)
示例#2
0
 def call_fut(self, descendant, ancestors):
     from adhocracy_core.graph import Graph
     context = testing.DummyResource(__objectmap__=self.context.__objectmap)
     graph = Graph(context)
     return Graph.is_in_subtree(graph, descendant, ancestors)