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}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
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
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| name | <class 'str'> | yes | |
| default | typing.Any | yes |
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
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| 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