diff options
author | Ruben Pollan <meskio@sindominio.net> | 2016-07-05 17:18:33 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-07-05 17:22:55 +0200 |
commit | 83c246f9877f4e381e0eb97e2b920f4c0bd37ab9 (patch) | |
tree | 9afb634df8257042ab6a298be13c8d54f114e78e | |
parent | 5409c0dec9d1d4a562cc69798e36d534b6690d30 (diff) |
[feat] make ValidationLevels iterable
Needed by bytmask cli.
- Related: #7965
-rw-r--r-- | keymanager/changes/next-changelog.txt | 1 | ||||
-rw-r--r-- | keymanager/src/leap/keymanager/validation.py | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/keymanager/changes/next-changelog.txt b/keymanager/changes/next-changelog.txt index 56ff7aa..d34022f 100644 --- a/keymanager/changes/next-changelog.txt +++ b/keymanager/changes/next-changelog.txt @@ -14,6 +14,7 @@ Features - `#8068 <https://leap.se/code/issues/8068>`_: make get_all_keys aware of active addresses. - `#6658 <https://leap.se/code/issues/6658>`_: Improve duplicated active documents fixup. - `#8165 <https://leap.se/code/issues/8165>`_: Check key document versions and fail if it's unknown. +- Make ValidationLevels iterable - `#1234 <https://leap.se/code/issues/1234>`_: Description of the new feature corresponding with issue #1234. - New feature without related issue number. diff --git a/keymanager/src/leap/keymanager/validation.py b/keymanager/src/leap/keymanager/validation.py index 8cf96da..16a897e 100644 --- a/keymanager/src/leap/keymanager/validation.py +++ b/keymanager/src/leap/keymanager/validation.py @@ -79,6 +79,9 @@ class _ValidationLevels(object): """ return getattr(self, name) + def __iter__(self): + return iter(self._level_names) + ValidationLevels = _ValidationLevels() |