Package Camelot :: Package camelot :: Package model :: Module i18n :: Class Translation
[frames] | no frames]

Class Translation

source code


Nested Classes
  Admin

Inherited from elixir.entity.Entity: __metaclass__

Instance Methods

Inherited from elixir.entity.Entity: __init__, delete, expire, expunge, flush, from_dict, merge, refresh, save, save_or_update, set, to_dict, update

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
translate(cls, source, language)
Translate source to language, return None if no translation is found
source code
 
translate_or_register(cls, source, language)
Translate source to language, if no translation is found, register the source as to be translated and return the source
source code

Inherited from elixir.entity.Entity: get, get_by, update_or_create

Class Variables
  language = Field(camelot.types.Language, index= True)
  source = Field(Unicode(500), index= True)
  value = Field(Unicode(500))
  cid = Field(INT(), default= 0, index= True)
  uid = Field(INT(), default= 0, index= True)
  __elixir_mutators__ = [(<elixir.statements.ClassMutator object...
  mapper = None
hash(x)
  table = None
hash(x)
Properties

Inherited from object: __class__

Class Variable Details

__elixir_mutators__

Value:
[(<elixir.statements.ClassMutator object at 0x9804e0c>,
  (),
  {'tablename': 'translation'})]