equal
deleted
inserted
replaced
205 def __init__(self, config): |
205 def __init__(self, config): |
206 super(VRegistry, self).__init__() |
206 super(VRegistry, self).__init__() |
207 self.config = config |
207 self.config = config |
208 |
208 |
209 def reset(self, path=None, force_reload=None): |
209 def reset(self, path=None, force_reload=None): |
210 self.clear() |
210 # don't use self.clear, we want to keep existing subdictionaries |
|
211 for subdict in self.itervalues(): |
|
212 subdict.clear() |
211 self._lastmodifs = {} |
213 self._lastmodifs = {} |
212 |
214 |
213 def __getitem__(self, name): |
215 def __getitem__(self, name): |
214 """return the registry (dictionary of class objects) associated to |
216 """return the registry (dictionary of class objects) associated to |
215 this name |
217 this name |