Add an EntryPointRegistry
Review Request #7813 — Created Dec. 17, 2015 and submitted
This patch adds a
EntryPointRegistry
(migrated from Review Board) that
populates a registry from Python entry points. A new mixin has been
added for registries that overrides the defaultget
behaviour to no
longer raise exceptions.This patch also ensures that no non-lazy
ugettext
calls are made at
import time.The documentation has been updated to reflect these new changes.
- Ran unit tests
- Built the docs and viewed them. The links worked.
Description | From | Last Updated |
---|---|---|
I know it's not the Queen's English, but we should use "behavior" here. |
david |
- Description:
-
This patch migrates Review Board's
EntryPointRegistry
into Djblets. Italso adds a mixin for retrieving items from registries without raising exceptions. + This patch adds a
EntryPointRegistry
(migrated from Review Board) that+ populates a registry from Python entry points. A new mixin has been + added for registries that overrides the default get
behaviour to no+ longer raise exceptions. + + This patch also ensures that no non-lazy
ugettext
calls are made at+ import time. + The documentation has been updated to reflect these new changes.
- Description:
-
- This patch migrates Review Board's
EntryPointRegistry
into Djblets. It- also adds a mixin for retrieving items from registries without raising - exceptions. - This patch adds a
EntryPointRegistry
(migrated from Review Board) thatpopulates a registry from Python entry points. A new mixin has been added for registries that overrides the default get
behaviour to nolonger raise exceptions. This patch also ensures that no non-lazy
ugettext
calls are made atimport time. The documentation has been updated to reflect these new changes.
-
Tool: Pyflakes Processed Files: djblets/registries/registry.py djblets/registries/mixins.py Ignored Files: docs/djblets/guides/registries/writing-registries.rst docs/djblets/coderef/index.rst Tool: PEP8 Style Checker Processed Files: djblets/registries/registry.py djblets/registries/mixins.py Ignored Files: docs/djblets/guides/registries/writing-registries.rst docs/djblets/coderef/index.rst
-
Tool: Pyflakes Processed Files: djblets/registries/registry.py djblets/registries/mixins.py Ignored Files: docs/djblets/guides/registries/writing-registries.rst docs/djblets/coderef/index.rst Tool: PEP8 Style Checker Processed Files: djblets/registries/registry.py djblets/registries/mixins.py Ignored Files: docs/djblets/guides/registries/writing-registries.rst docs/djblets/coderef/index.rst
-
Tool: PEP8 Style Checker Processed Files: djblets/registries/registry.py djblets/registries/mixins.py Ignored Files: docs/djblets/guides/registries/writing-registries.rst docs/djblets/coderef/index.rst Tool: Pyflakes Processed Files: djblets/registries/registry.py djblets/registries/mixins.py Ignored Files: docs/djblets/guides/registries/writing-registries.rst docs/djblets/coderef/index.rst