Ejemplo n.º 1
0
 def col_defs(self):
     return [
         LinkCol(self, 'Name', model_col=lsiLanguage.name),
         IdCol(self, 'ISO-639-3', sClass='left', model_col=lsiLanguage.id),
         FamilyLinkCol(self, 'Family', language_cls=lsiLanguage),
         MacroareaCol(self, 'Macro_Area', language_cls=lsiLanguage),
         Col(self, 'Features', model_col=lsiLanguage.representation),
         LinkToMapCol(self, 'm'),
     ]
Ejemplo n.º 2
0
 def col_defs(self):
     return [
         LanguageIdCol(self, 'id'),
         LinkCol(self, 'name'),
         LinkToMapCol(self, 'm'),
         Col(self,
             'latitude',
             sDescription='<small>The geographic latitude</small>'),
         Col(self,
             'longitude',
             sDescription='<small>The geographic longitude</small>'),
         MacroareaCol(self, 'macroarea', LexibankLanguage),
         FamilyLinkCol(self, 'family', LexibankLanguage),
     ]
Ejemplo n.º 3
0
 def col_defs(self):
     return [
         LanguageIdCol(self, 'id'),
         LinkCol(self, 'name'),
         LinkToMapCol(self, 'm'),
         Col(self,
             'latitude',
             sDescription='<small>The geographic latitude</small>'),
         Col(self,
             'longitude',
             sDescription='<small>The geographic longitude</small>'),
         MacroareaCol(self, 'macroarea', GrambankLanguage),
         FamilyLinkCol(self, 'family', GrambankLanguage),
         Col(self, 'Features', model_col=GrambankLanguage.representation),
     ]
Ejemplo n.º 4
0
 def col_defs(self):
     return [
         LanguageIdCol(self, 'id'),
         LinkCol(self, 'name'),
         LinkToMapCol(self, 'm'),
         Col(self,
             'latitude',
             sDescription='<small>The geographic latitude</small>'),
         Col(self,
             'longitude',
             sDescription='<small>The geographic longitude</small>'),
         Col(self, 'region', model_col=LexiRumahLanguage.region),
         FamilyLinkCol(self, 'family', LexiRumahLanguage),
         GlottologLinkCol(self, 'Glottolog'),
         EthnologueLinkCol(self, 'Ethnologue'),
     ]
Ejemplo n.º 5
0
 def col_defs(self):
     template = [
         FamilyLinkCol(self, 'family', LexiRumahLanguage, get_object=lambda i: i.valueset.language),
         LinkCol(
             self,
             'lect',
             model_col=LexiRumahLanguage.name,
             get_object=lambda i: i.valueset.language),
         LinkCol(
             self,
             'concept',
             model_col=Concept.name,
             get_object=lambda i: i.valueset.parameter),
         LinkCol(
             self,
             'Form (IPA)',
             sTitle='Form (IPA)',
             model_col=Counterpart.name),
         ItalicsCol(
             self,
             'orthography',
             model_col=Counterpart.orthographic_form),
         # Col(self, 'loan', model_col=Counterpart.loan),
         TextCol(self, 'comment', model_col=Counterpart.comment),
         SourcesCol(
             self,
             'sources',
             model_col=LexiRumahSource.name,
             get_object=get_counterpart_references),
         TextCol(
             self,
             'given as',
             model_col=CounterpartReference.form_given_as,
             get_object=lambda i: i.references[0] if i.references else None),
     ]
     if self.source:
         del template[6]
     if self.parameter:
         del template[2]
     if self.language:
         del template[1]
         del template[0]
     return template
Ejemplo n.º 6
0
 def col_defs(self):
     return [
         MacroareaCol(self, 'ma', language_cls=LanguageWithFamily),
         FamilyLinkCol(self, 'f', language_cls=LanguageWithFamily),
     ]