@@ -92,20 +92,6 @@ def __init__(self, database, jsonInit) :
9292 raise KeyError ("'%s' is not a valid edge collection" % de .name )
9393 self .definitions [de .name ] = de
9494
95- # for e in jsonInit["edgeDefinitions"] :
96- # if e["collection"] not in self._edgeDefinitions :
97- # raise CreationError("Collection '%s' is not mentioned in the definition of graph '%s'" % (e["collection"], self.__class__,__name__))
98- # if e["from"] != self._edgeDefinitions[e["collection"]]["from"] :
99- # vals = (e["collection"], self.__class__,__name__, self._edgeDefinitions[e["collection"]]["from"], e["from"])
100- # raise CreationError("Edge definition '%s' of graph '%s' mismatch for 'from':\npython:%s\narangoDB:%s" % vals)
101- # if e["to"] != self._edgeDefinitions[e["collection"]]["to"] :
102- # vals = (e["collection"], self.__class__,__name__, self._edgeDefinitions[e["collection"]]["to"], e["to"])
103- # raise CreationError("Edge definition '%s' of graph '%s' mismatch for 'to':\npython:%s\narangoDB:%s" % vals )
104- # defs.append(e["collection"])
105-
106- # if jsonInit["orphanCollections"] != self._orphanCollections :
107- # raise CreationError("Orphan collection '%s' of graph '%s' mismatch:\npython:%s\narangoDB:%s" (e["collection"], self.__class__,__name__, self._orphanCollections, jsonInit["orphanCollections"]))
108-
10995 self .URL = "%s/%s" % (self .database .graphsURL , self ._key )
11096
11197 def createVertex (self , collectionName , docAttributes , waitForSync = False ) :
0 commit comments