Module loglan_db.model_html.html_word
This module contains a HTMLExportWord Model
Classes
class AddonWordTranslator
-
Additional methods for HTMLExportWord class
Subclasses
Static methods
def conditions(x_key: str, x_keys: list, x_case_sensitive: bool) ‑> bool
def translation_by_key(key: str, language: str = None, style: str = 'ultra', event_id: Union[BaseEvent, int, str] = None, case_sensitive: bool = False) ‑> Optional[str]
-
Get information about loglan words by key in a foreign language
Args
key: language: style: event_id: case_sensitive: Returns:
Methods
def definitions_by_key(self, key: str, style: str = 'ultra', case_sensitive: bool = False) ‑> str
-
Args
key: style: case_sensitive: Returns:
class HTMLExportWord (**kwargs)
-
HTMLExportWord 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
- AddonWordGetter
- AddonWordTranslator
- AddonExportWordConverter
Static methods
def html_all_by_name(name: str, style: str = 'ultra', event_id: Union[BaseEvent, int, str] = None, case_sensitive: bool = False) ‑> Optional[str]
-
Convert all words found by name into one HTML string
Args
name
- Name of the search word
style
- HTML design style
event_id: case_sensitive: Returns:
Instance variables
var TID_old
var created
var event_end_id : sqlalchemy.sql.schema.Column
var event_start_id : sqlalchemy.sql.schema.Column
var id_old
var match
var name : sqlalchemy.sql.schema.Column
var notes : Dict[str, str]
var origin
var origin_x
var rank : str
var type_id
var updated
var year : datetime.datetime
Methods
def get_styled_values(self, style: str = 'ultra') ‑> tuple
-
Args
style: Returns:
def html_definitions(self, style: str = 'ultra')
-
:param style: :return:
def html_meaning(self, style: str = 'ultra') ‑> str
-
Args
style: Returns:
def html_origin(self, style: str = 'ultra')
-
Args
style: Returns:
def meaning(self, style: str = 'ultra') ‑> Meaning
-
:param style: :return:
def used_in_as_html(self, style: str = 'ultra') ‑> str
Inherited members
class Meaning (mid: int, technical: str, definitions: List[str], used_in: str)
-
Meaning Class
Class variables
var definitions : List[str]
var mid : int
var technical : str
var used_in : str