mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Minor doc fix in db.tables
This commit is contained in:
parent
554ddeaf10
commit
ac19f95d5c
2 changed files with 4 additions and 2 deletions
|
@ -195,6 +195,8 @@ def create_translation_table(_table_name, foreign_class, relation_name,
|
||||||
# these are passed as *args anyway
|
# these are passed as *args anyway
|
||||||
def creator(language, value):
|
def creator(language, value):
|
||||||
row = Translations()
|
row = Translations()
|
||||||
|
# TODO this has to be an object; we don't seem to have any way to
|
||||||
|
# handle receiving a string here
|
||||||
row.local_language = language
|
row.local_language = language
|
||||||
setattr(row, name, value)
|
setattr(row, name, value)
|
||||||
return row
|
return row
|
||||||
|
|
|
@ -89,10 +89,10 @@ class Language(TableBase):
|
||||||
id = Column(Integer, primary_key=True, nullable=False,
|
id = Column(Integer, primary_key=True, nullable=False,
|
||||||
doc=u"A numeric ID")
|
doc=u"A numeric ID")
|
||||||
iso639 = Column(Unicode(79), nullable=False,
|
iso639 = Column(Unicode(79), nullable=False,
|
||||||
doc=u"The two-letter code of the country where this language is spoken. Note that it is not unique.",
|
doc=u"The two-letter code of the language. Note that it is not unique.",
|
||||||
info=dict(format='identifier'))
|
info=dict(format='identifier'))
|
||||||
iso3166 = Column(Unicode(79), nullable=False,
|
iso3166 = Column(Unicode(79), nullable=False,
|
||||||
doc=u"The two-letter code of the language. Note that it is not unique.",
|
doc=u"The two-letter code of the country where this language is spoken. Note that it is not unique.",
|
||||||
info=dict(format='identifier'))
|
info=dict(format='identifier'))
|
||||||
identifier = Column(Unicode(79), nullable=False,
|
identifier = Column(Unicode(79), nullable=False,
|
||||||
doc=u"An identifier",
|
doc=u"An identifier",
|
||||||
|
|
Loading…
Reference in a new issue