We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f78ab9 commit bd5b44dCopy full SHA for bd5b44d
CHANGES.rst
@@ -5,6 +5,9 @@ History
5
3.1.2 (unreleased)
6
------------------
7
8
+- Prevent loading of duplicate entry points.
9
+ [rnix]
10
+
11
- Introduce ``empty_display_value`` widget property. Select display renderer
12
uses it if vocabulary not contains value.
13
[lenadax]
src/yafowil/utils.py
@@ -70,6 +70,9 @@ def get_plugins(ns=None):
70
if _yafowil_plugins is None:
71
_yafowil_plugins = list()
72
for ep in iter_entry_points('yafowil.plugin'):
73
+ # prevent loading of duplicate entry points
74
+ if not ep.module_name.startswith(ep.dist.project_name):
75
+ continue
76
cb = ep.load()
77
_yafowil_plugins.append((ep, cb))
78
_yafowil_plugins = sorted(
0 commit comments