diff options
author | hut <hut@lavabit.com> | 2010-04-08 18:10:33 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-08 18:10:33 +0200 |
commit | 1c09037cb7484bdd101c07f8373e2ea6fc9f91fd (patch) | |
tree | 3f52d90cc4b8ed72e0bc31a6a030926dabd83d29 /ranger | |
parent | e4e9ef4a93eb8d95f29848b2447968c6b9eef129 (diff) | |
download | ranger-1c09037cb7484bdd101c07f8373e2ea6fc9f91fd.tar.gz |
shared.settings: allow to iterate over settings
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/shared/settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py index c533205b..9a8a0000 100644 --- a/ranger/shared/settings.py +++ b/ranger/shared/settings.py @@ -91,6 +91,10 @@ class SettingObject(SignalDispatcher): self.__setattr__(name, value) return self._settings[name] + def __iter__(self): + for x in self._settings: + yield x + def _check_type(self, name, value): from inspect import isfunction typ = ALLOWED_SETTINGS[name] |