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