Ejemplo n.º 1
0
 def call_fut(self,
              graph,
              source,
              isheet,
              references,
              registry,
              send_event=True):
     from adhocracy_core.graph import Graph
     return Graph.set_references_for_isheet(graph,
                                            source,
                                            isheet,
                                            references,
                                            registry,
                                            send_event=send_event)
Ejemplo n.º 2
0
 def call_fut(self, objectmap, resource, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return Graph.get_back_references(graph, resource, **kwargs)
Ejemplo n.º 3
0
 def call_fut(self, objectmap, *args):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return Graph.set_references(graph, *args)
Ejemplo n.º 4
0
 def call_fut(self, mock_objectmap, **kwargs):
     from adhocracy_core.graph import Graph
     context = testing.DummyResource()
     context.__objectmap__ = mock_objectmap
     graph = Graph(context=context)
     return Graph.get_reftypes(graph, **kwargs)
Ejemplo n.º 5
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)
Ejemplo n.º 6
0
 def call_fut(self, objectmap, *args, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return graph.get_refernces_for_removal_notificaton(*args, **kwargs)
Ejemplo n.º 7
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)
Ejemplo n.º 8
0
 def call_fut(self, context, source, isheet):
     from adhocracy_core.graph import Graph
     graph = Graph(context)
     return Graph.get_references_for_isheet(graph, source, isheet)
Ejemplo n.º 9
0
 def call_fut(self, graph, source, isheet, references, registry,
              send_event=True):
     from adhocracy_core.graph import Graph
     return Graph.set_references_for_isheet(graph, source, isheet,
                                            references, registry,
                                            send_event=send_event)
Ejemplo n.º 10
0
 def call_fut(self, objectmap, resource, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return Graph.get_back_references(graph, resource, **kwargs)
Ejemplo n.º 11
0
 def call_fut(self, objectmap, *args, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return Graph.set_references(graph, *args, **kwargs)
Ejemplo n.º 12
0
 def call_fut(self, objectmap, *args, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return graph.send_back_reference_removal_notificatons(*args, **kwargs)
Ejemplo n.º 13
0
 def call_fut(self, objectmap, *args, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return graph.get_refernces_for_removal_notificaton(*args, **kwargs)
Ejemplo n.º 14
0
 def call_fut(self, objectmap, *args, **kwargs):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return graph.send_back_reference_removal_notificatons(*args, **kwargs)
Ejemplo n.º 15
0
 def call_fut(self, objectmap, target, isheet):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return Graph.get_back_references_for_isheet(graph, target, isheet)
Ejemplo n.º 16
0
 def make_one(self, context):
     from adhocracy_core.graph import Graph
     return Graph(context)
Ejemplo n.º 17
0
 def call_fut(self, objectmap, target, isheet):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return Graph.get_back_references_for_isheet(graph, target, isheet)
Ejemplo n.º 18
0
 def call_fut(self, objectmap, resource, reftype):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return graph.get_back_reference_sources(resource, reftype)
Ejemplo n.º 19
0
 def call_fut(self, context, source, isheet):
     from adhocracy_core.graph import Graph
     graph = Graph(context)
     return Graph.get_references_for_isheet(graph, source, isheet)
Ejemplo n.º 20
0
 def call_fut(self, mock_objectmap, **kwargs):
     from adhocracy_core.graph import Graph
     context = testing.DummyResource()
     context.__objectmap__ = mock_objectmap
     graph = Graph(context=context)
     return Graph.get_reftypes(graph, **kwargs)
Ejemplo n.º 21
0
 def call_fut(self, objectmap, resource, reftype):
     from adhocracy_core.graph import Graph
     graph = Graph(objectmap.root)
     return graph.get_back_reference_sources(resource, reftype)