Skip to content

core.features

Overview

Registry of the class Vueda model feature sections that optional feature apps provide.

Classes

get_feature_section

Return the registered section called name, or None when no app registered it.

Signature

get_feature_section(name)

Parameters

NameTypeRequiredDescription
name<class 'str'>yes

Returns

vueda.core.features.FeatureSection | None

Source

server/vueda/core/features.py:95

get_feature_sections

Return every registered section, keyed by name, in section-name order.

Signature

get_feature_sections()

Returns

dict[str, vueda.core.features.FeatureSection]

Source

server/vueda/core/features.py:100

register_feature_section

Register section so class Vueda accepts it.

Call this while the owning app's apps module is imported, not from AppConfig.ready(). Django imports every application configuration before it imports any models module, so registration at that point is ready before Django constructs the first model, whatever order INSTALLED_APPS uses.

Re-registering the same name from the same app replaces the previous definition, which keeps a reimported module working. A different app claiming a registered name is a configuration error.

Signature

register_feature_section(section)

Parameters

NameTypeRequiredDescription
section<class 'vueda.core.features.FeatureSection'>yes

Returns

<class 'vueda.core.features.FeatureSection'>

Source

server/vueda/core/features.py:74

Source

server/vueda/core/features.py

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2