Show More
@@ -20,8 +20,8 b' class ui(object):' | |||||
20 | self._ocfg = config.config() # overlay |
|
20 | self._ocfg = config.config() # overlay | |
21 | self._tcfg = config.config() # trusted |
|
21 | self._tcfg = config.config() # trusted | |
22 | self._ucfg = config.config() # untrusted |
|
22 | self._ucfg = config.config() # untrusted | |
23 |
self._trustusers = |
|
23 | self._trustusers = set() | |
24 |
self._trustgroups = |
|
24 | self._trustgroups = set() | |
25 |
|
25 | |||
26 | if src: |
|
26 | if src: | |
27 | self._tcfg = src._tcfg.copy() |
|
27 | self._tcfg = src._tcfg.copy() | |
@@ -104,10 +104,8 b' class ui(object):' | |||||
104 | self._traceback = self.configbool('ui', 'traceback', False) |
|
104 | self._traceback = self.configbool('ui', 'traceback', False) | |
105 |
|
105 | |||
106 | # update trust information |
|
106 | # update trust information | |
107 |
|
|
107 | self._trustusers.update(self.configlist('trusted', 'users')) | |
108 | self._trustusers[user] = 1 |
|
108 | self._trustgroups.update(self.configlist('trusted', 'groups')) | |
109 | for group in self.configlist('trusted', 'groups'): |
|
|||
110 | self._trustgroups[group] = 1 |
|
|||
111 |
|
109 | |||
112 | def setconfig(self, section, name, value): |
|
110 | def setconfig(self, section, name, value): | |
113 | for cfg in (self._ocfg, self._tcfg, self._ucfg): |
|
111 | for cfg in (self._ocfg, self._tcfg, self._ucfg): |
General Comments 0
You need to be logged in to leave comments.
Login now