Skip to content

VuedaOptions

Overview

The normalized feature policy of one model.

Feature integrations read this instead of the author-written nested classes. Every registered section is present, whether or not the model declared it, so a feature always sees its defaults.

repr {#repr}

Return repr(self).

Signature {#repr-signature}

__repr__(self)

Parameters {#repr-parameters}

NameTypeRequiredDescription
selfyes

Returns {#repr-returns}

<class 'str'>

Source {#repr-source}

server/vueda/core/options.py:119

get

Return the resolved options for section name, or default when it is unregistered.

Signature

get(self, name, default)

Parameters

NameTypeRequiredDescription
selfyes
name<class 'str'>yes
defaulttyping.Anyyes

Returns

typing.Any

Source

server/vueda/core/options.py:122

is_enabled

Return whether section name is registered and this model participates in it.

Signature

is_enabled(self, name)

Parameters

NameTypeRequiredDescription
selfyes
name<class 'str'>yes

Returns

<class 'bool'>

Source

server/vueda/core/options.py:126

dict {#dict}

dictionary for instance variables

weakref {#weakref}

list of weak references to the object

_abc_impl

_sections

model

problems

Source

server/vueda/core/options.py:93

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