Skip to content

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}

NameTypeRequiredDescription
selfyes
nameyes

Source {#delattr-source}

<string>

eq {#eq}

Return self==value.

Signature {#eq-signature}

__eq__(self, other)

Parameters {#eq-parameters}

NameTypeRequiredDescription
selfyes
otheryes

Source {#eq-source}

<string>

hash {#hash}

Return hash(self).

Signature {#hash-signature}

__hash__(self)

Parameters {#hash-parameters}

NameTypeRequiredDescription
selfyes

Source {#hash-source}

<string>

repr {#repr}

Return repr(self).

Signature {#repr-signature}

__repr__(self)

Parameters {#repr-parameters}

NameTypeRequiredDescription
selfyes

Source {#repr-source}

<string>

setattr {#setattr}

Implement setattr(self, name, value).

Signature {#setattr-signature}

__setattr__(self, name, value)

Parameters {#setattr-parameters}

NameTypeRequiredDescription
selfyes
nameyes
valueyes

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

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