def get(self, id): if not isinstance(id, (int, long)): raise TypeError("Only integer and long values allowed as node ids.") try: return self.db.getNodeById( id ) except: rethrow_current_exception_as(KeyError)
def get(self, id): if not isinstance(id, (int, long)): raise TypeError( "Only integer and long values allowed as node ids.") try: return self.db.getNodeById(id) except: rethrow_current_exception_as(KeyError)
def get(self, _id): if not isinstance(_id, (int, long)): raise TypeError("Only integer and long values \ allowed as relationship ids.") try: return self.db.getRelationshipById(id) except: rethrow_current_exception_as(KeyError)
def __getitem__(self, key): try: return PythonicIterator(self._inner.columnAs(key)) except: rethrow_current_exception_as(KeyError)
def __getitem__(self, key): try: return PythonicIterator(self._inner.columnAs(key)) except: rethrow_current_exception_as(KeyError)