summary refs log tree commit diff stats
path: root/ranger/shared/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/shared/settings.py')
-rw-r--r--ranger/shared/settings.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/ranger/shared/settings.py b/ranger/shared/settings.py
index 9a8a0000..c5544a47 100644
--- a/ranger/shared/settings.py
+++ b/ranger/shared/settings.py
@@ -95,6 +95,18 @@ class SettingObject(SignalDispatcher):
 		for x in self._settings:
 			yield x
 
+	def types_of(self, name):
+		try:
+			typ = ALLOWED_SETTINGS[name]
+		except KeyError:
+			return tuple()
+		else:
+			if isinstance(typ, tuple):
+				return typ
+			else:
+				return (typ, )
+
+
 	def _check_type(self, name, value):
 		from inspect import isfunction
 		typ = ALLOWED_SETTINGS[name]
0 +0200 committer hut <hut@lavabit.com> 2010-04-29 19:23:37 +0200 Separated benchmark from testcase' href='/akspecs/ranger/commit/test/tc_loader.py?h=v1.7.0-emacs&id=d76fd5b7666cd1e7b9ff4eb51a822e1ab41fac28'>d76fd5b7 ^
5c7b44ff ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79