Add a registry for configuration forms
Review Request #7827 — Created Dec. 24, 2015 and submitted — Latest diff uploaded
Review Board's "account pages", which are Djblets
ConfigPage
s with
dynamically determined forms have been ported to Djblets. The behaviour
for dynamically configuring a form is encapsulated in the
DynamicConfigPageMixin
and theConfigPageRegistry
. Config pages
that are to be dynamic should inherit from theDynamicConfigPageMixin
and are to be managed by a single registry; multiple registries can
manage multiple sets of configuration pages, however.
- Ran unit tests.
- Used this with an upcoming change for Review Board.
djblets/configforms/mixins.py |
---|
djblets/configforms/registry.py |
---|
djblets/configforms/tests.py |
---|
djblets/registries/registry.py |
---|
docs/djblets/coderef/index.rst |
---|