vregistry.py
branchstable
changeset 2906 677fa98659a8
parent 2836 b94b9c48111f
child 2968 0e3460341023
child 3036 26827ed46860
child 3054 8b3b243e308e
equal deleted inserted replaced
2905:b23bbb31368c 2906:677fa98659a8
   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