Example #1
0
 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
Example #2
0
 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
Example #3
0
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Language:
         q = q.options(joinedload(Variety.family))
     return q
Example #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
Example #5
0
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Language:
         q = q.options(joinedload(WalsLanguage.genus))
     return q
Example #6
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
Example #7
0
 def query(self, model):
     q = CldfConfig.query(self, model)
     if model == Language:
         q = q.options(joinedload(WalsLanguage.genus))
     return q