FeatureSection
Overview
A namespaced section that a feature app contributes to class Vueda.
name matches the nested class an author writes, exactly. app_label is the Django app label of the owning feature app. validate runs after option resolution and returns error messages for rules that span options. A failed section is reported by system checks and never reaches contribute. contribute runs once per concrete model, right after Django prepares it, and may call model.add_to_class() to add fields or other behaviour.
contribute_order sequences the contributors, lowest first, with section name breaking a tie. A feature that reads the finished field list must sort after every feature that adds a field, or it sees a model that is still being assembled.
delattr {#delattr}
Implement delattr(self, name).
Signature {#delattr-signature}
__delattr__(self, name)
Parameters {#delattr-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| name | yes |
Source {#delattr-source}
<string>
eq {#eq}
Return self==value.
Signature {#eq-signature}
__eq__(self, other)
Parameters {#eq-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| other | yes |
Source {#eq-source}
<string>
hash {#hash}
Return hash(self).
Signature {#hash-signature}
__hash__(self)
Parameters {#hash-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Source {#hash-source}
<string>
repr {#repr}
Return repr(self).
Signature {#repr-signature}
__repr__(self)
Parameters {#repr-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes |
Source {#repr-source}
<string>
setattr {#setattr}
Implement setattr(self, name, value).
Signature {#setattr-signature}
__setattr__(self, name, value)
Parameters {#setattr-parameters}
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| name | yes | ||
| value | yes |
Source {#setattr-source}
<string>
dict {#dict}
dictionary for instance variables
weakref {#weakref}
list of weak references to the object
app_label
contribute
contribute_order
name
options
validate
Source
server/vueda/core/features.py:48