예제 #1
0
파일: adapters.py 프로젝트: clld/wold2
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Parameter:
         q = q.options(joinedload(Meaning.semantic_field))
     if model == Value:
         q = q.options(joinedload_all(Counterpart.word, Word.unitvalues))
     return q
예제 #2
0
파일: adapters.py 프로젝트: armendk/wold2
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Parameter:
         q = q.options(joinedload(Meaning.semantic_field))
     if model == Value:
         q = q.options(joinedload_all(Counterpart.word, Word.unitvalues))
     return q
예제 #3
0
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Language:
         q = q.options(joinedload(Variety.family))
     return q
예제 #4
0
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Value:
         q = q.options(
             joinedload_all(Value.sentence_assocs, ValueSentence.sentence))
     return q
예제 #5
0
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Language:
         q = q.options(joinedload(WalsLanguage.genus))
     return q
예제 #6
0
파일: adapters.py 프로젝트: clld/apics
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Value:
         q = q.options(joinedload_all(Value.sentence_assocs, ValueSentence.sentence))
     return q
예제 #7
0
파일: adapters.py 프로젝트: clld/wals3
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Language:
         q = q.options(joinedload(WalsLanguage.genus))
     return q