summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-08 18:10:33 +0200
committerhut <hut@lavabit.com>2010-04-08 18:10:33 +0200
commit1c09037cb7484bdd101c07f8373e2ea6fc9f91fd (patch)
tree3f52d90cc4b8ed72e0bc31a6a030926dabd83d29 /ranger
parente4e9ef4a93eb8d95f29848b2447968c6b9eef129 (diff)
downloadranger-1c09037cb7484bdd101c07f8373e2ea6fc9f91fd.tar.gz
shared.settings: allow to iterate over settings
Diffstat (limited to 'ranger')
-rw-r--r--ranger/shared/settings.py4
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]