summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keymanager/changes/next-changelog.txt1
-rw-r--r--keymanager/src/leap/keymanager/validation.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/keymanager/changes/next-changelog.txt b/keymanager/changes/next-changelog.txt
index 56ff7aa9..d34022f8 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 8cf96da1..16a897e9 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()