Skip to content

Commit 588b3af

Browse files
committed
cleaning
1 parent 1c42c1f commit 588b3af

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

pyArango/database.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def reloadCollections(self) :
4646
else :
4747
try :
4848
colClass = COL.getCollectionClass(colName)
49-
# if colName[0] != "_" :
5049
colObj = colClass(self, colData)
5150
except KeyError :
5251
if colData["type"] == COL.COLLECTION_EDGE_TYPE :
@@ -163,13 +162,6 @@ def _checkCollectionList(lst) :
163162
raise CreationError(data["errorMessage"], data)
164163
return self.graphs[name]
165164

166-
# def _checkGraphCollections(self, edgeDefinitions, orphanCollections) :
167-
# for ed in edgeDefinitions :
168-
# checkList(ed["from"])
169-
# checkList(ed["to"])
170-
171-
# checkList(orphanCollections)
172-
173165
def hasCollection(self, name) :
174166
"""returns true if the databse has a collection by the name of 'name'"""
175167
return name in self.collections

pyArango/graph.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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) :

pyArango/tests/tests.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,7 @@ def test_transaction_exception(self) :
651651
except NameError :
652652
pass
653653

654-
ROOT_USERNAME = input("Please enter root username: ")
654+
ROOT_USERNAME = input("Please enter root username: ")
655655
ROOT_PASSWORD = input("Please entre root password: ")
656656

657-
# print "Warning should ask for the root pass"
658-
# ROOT_USERNAME = "root"
659-
# ROOT_PASSWORD = "root"
660-
661657
unittest.main()

0 commit comments

Comments
 (0)