コード例 #1
0
ファイル: ref.py プロジェクト: vikasvns2000/bre-spacy-master
 def dereference(self, session, ref, allow_none=False):
     """ Dereference an ObjectID to this field's underlying type """
     ref = DBRef(id=ref,
                 collection=self.type.type.get_collection_name(),
                 database=self.db)
     ref.type = self.type.type
     return session.dereference(ref, allow_none=allow_none)
コード例 #2
0
ファイル: ref.py プロジェクト: dustinkeitel/MongoAlchemy
 def dereference(self, session, ref, allow_none=False):
     ref = DBRef(id=ref, collection=self.type.type.get_collection_name(),
                 database=self.db)
     ref.type = self.type.type
     return session.dereference(ref, allow_none=allow_none)
コード例 #3
0
ファイル: ref.py プロジェクト: snahor/MongoAlchemy
 def dereference(self, session, ref, allow_none=False):
     """ Dereference an ObjectID to this field's underlying type """
     ref = DBRef(id=ref, collection=self.type.type.get_collection_name(),
                 database=self.db)
     ref.type = self.type.type
     return session.dereference(ref, allow_none=allow_none)