Пример #1
0
 def __init__(self, object_class, repository):
     NodeMatcher.__init__(self, self._coerce_to_graph(repository))
     self._object_class = object_class
     self._match_class = type("%sMatch" % self._object_class.__name__,
                              (ModelMatch, ),
                              {"_object_class": object_class})
Пример #2
0
 def __init__(self, object_class, graph):
     NodeMatcher.__init__(self, graph)
     self._object_class = object_class
     self._match_class = type("%sMatch" % self._object_class.__name__,
                              (GraphObjectMatch, ),
                              {"_object_class": object_class})