Add registries, which can be used to keep track of unique objects
Review Request #7780 — Created Nov. 25, 2015 and submitted — Latest diff uploaded
Registries are wrappers around Python's
set
class that provides the
additional constraints:
1. All registered members must have a core set of attributes
(defined per registry).
2. The values for these attributes must be unique across all members.A guide on writing registries has been added to the documentation.
- Ran unit tests.
- Built and viewed the docs.
djblets/registries/__init__.py |
---|
djblets/registries/errors.py |
---|
djblets/registries/registry.py |
---|
djblets/registries/tests.py |
---|
docs/djblets/coderef/index.rst |
---|
docs/djblets/guides/index.rst |
---|
docs/djblets/guides/registries/index.rst |
---|
docs/djblets/guides/registries/writing-registries.rst |
---|