Module loglan_db.model_db.addons.addon_word_linker

This module contains an addon for basic Word Model, which makes it possible to specify the authors and derivatives of words

Classes

class AddonWordLinker

AddonWordLinker Model

Class variables

var authors : flask_sqlalchemy.BaseQuery

Methods

def add_author(self, author: BaseAuthor) ‑> str

Connect Author object with BaseWord object

Args

author
BaseAuthor:

Returns:

def add_authors(self, authors: List[BaseAuthor])

Connect Author objects with BaseWord object

Args

authors
List[BaseAuthor]:

Returns:

def add_child(self, child: BaseWord) ‑> str

Add derivative for the source word Get words from Used In and add relationship in database

Args

child
BaseWord: Object to add

Returns

String with the name of the added child (BaseWord.name)

def add_children(self, children: List[BaseWord])

Add derivatives for the source word Get words from Used In and add relationship in database

Args

children
List[BaseWord]:

Returns

None