@@ -75,8 +75,6 @@ def validate(self) :
7575 res = {}
7676 for field in self .validators .keys () :
7777 try :
78- # print field, self.store[field]
79- # if type(self.validators[field]) is types.DictType and field not in self.store :
8078 if isinstance (self .validators [field ], dict ) and field not in self .store :
8179 self .store [field ] = DocumentStore (self .collection , validators = self .validators [field ], initDct = {}, subStore = True )
8280 self .validateField (field )
@@ -99,7 +97,6 @@ def set(self, dct) :
9997
10098 for field , value in dct .items () :
10199 if field not in self .collection .arangoPrivates :
102- # if type(value) is types.DictType :
103100 if isinstance (value , dict ) :
104101 if field in self .validators :
105102 vals = self .validators [field ]
@@ -112,7 +109,6 @@ def set(self, dct) :
112109
113110 def __getitem__ (self , field ) :
114111 """Get an element from the store"""
115- # if (field in self.validators) and (type(self.validators[field]) is types.DictType) and (field not in self.store) :
116112 if (field in self .validators ) and isinstance (self .validators [field ], dict ) and (field not in self .store ) :
117113 self .store [field ] = DocumentStore (self .collection , validators = self .validators [field ], initDct = {}, patch = self .patching , subStore = True )
118114 self .subStores [field ] = self .store [field ]
@@ -134,7 +130,6 @@ def __setitem__(self, field, value) :
134130 if field in self .collection .arangoPrivates :
135131 raise ValueError ("DocumentStore cannot contain private field (got %s)" % field )
136132
137- # if type(value) is types.DictType :
138133 if isinstance (value , dict ) :
139134 if field in self .validators :
140135 vals = self .validators [field ]
0 commit comments