models

Language model.

class pyramid_localize.models.Language(**kwargs)[source]

Language table model definition.

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

pyramid_localize.models.before_language_insert(_, __, language)[source]

Set name and native_name before creation.