Module loglan_db.model_export
This module contains an "Export extensions" for LOD dictionary SQL model. Add export() function to db object for returning its text string presentation.
Classes
class AddonExportWordConverter-
Addon for ExportWord class with converters for properties
Subclasses
Class variables
var affixes : sqlalchemy.orm.query.Queryvar complexes : sqlalchemy.orm.query.Queryvar notes : Dict[str, str]var rank : strvar year : datetime.datetime
Instance variables
var e_affixes : str-
Returns:
var e_rank : str-
Returns:
var e_source : str-
Returns:
var e_usedin : str-
Returns:
var e_year : str-
Returns:
class ExportAuthor (**kwargs)-
ExportAuthor Class
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.
Ancestors
- BaseAuthor
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var createdvar updated
Methods
def export(self) ‑> str-
Prepare Author data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportDefinition (**kwargs)-
ExportDefinition Class
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.
Ancestors
- BaseDefinition
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var bodyvar createdvar e_grammar : str-
Prepare grammar data for export
Returns
Formatted string
var grammar_codevar languagevar notesvar positionvar slotsvar updatedvar usagevar word_id
Methods
def export(self) ‑> str-
Prepare Definition data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportEvent (**kwargs)-
ExportEvent Class
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.
Ancestors
Instance variables
var createdvar updated
Methods
def export(self) ‑> str-
Prepare Event data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportSetting (**kwargs)-
ExportSetting Class
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.
Ancestors
- BaseSetting
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var createdvar updated
Methods
def export(self) ‑> str-
Prepare Setting data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportSyllable (**kwargs)-
ExportSyllable Class
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.
Ancestors
- BaseSyllable
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var createdvar updated
Methods
def export(self) ‑> str-
Prepare Syllable data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportType (**kwargs)-
ExportType Class
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.
Ancestors
Instance variables
var createdvar descriptionvar groupvar parentablevar typevar type_xvar updated
Methods
def export(self) ‑> str-
Prepare Type data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportWord (**kwargs)-
ExportWord Class
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.
Ancestors
- BaseWord
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
- AddonExportWordConverter
Instance variables
var TID_oldvar createdvar event_end_idvar event_start_idvar id_oldvar matchvar namevar notes : Dict[str, str]var originvar origin_xvar rank : strvar type_idvar updatedvar year : datetime.datetime
Methods
def export(self) ‑> str-
Prepare Word data for exporting to text file
Returns
Formatted basic string
Inherited members
class ExportWordSpell (**kwargs)-
ExportWordSpell Class
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.
Ancestors
- BaseWordSpell
- BaseWord
- sqlalchemy.orm.decl_api.Model
- flask_sqlalchemy.model.Model
- InitBase
- DBBase
Instance variables
var TID_oldvar createdvar event_end_idvar event_start_idvar id_oldvar matchvar namevar notesvar originvar origin_xvar rankvar type_idvar updatedvar year
Methods
def export(self) ‑> str-
Prepare WordSpell data for exporting to text file
Returns
Formatted basic string
Inherited members