equal
deleted
inserted
replaced
211 |
211 |
212 def __init__(self, config): |
212 def __init__(self, config): |
213 super(VRegistry, self).__init__() |
213 super(VRegistry, self).__init__() |
214 self.config = config |
214 self.config = config |
215 |
215 |
216 def reset(self): |
216 def reset(self, force_reload=None): |
217 self.clear() |
217 self.clear() |
218 self._lastmodifs = {} |
218 self._lastmodifs = {} |
|
219 # don't reload uicfg when appobjects modules won't be reloaded as well |
219 if uicfg is not None: |
220 if uicfg is not None: |
220 reload(uicfg) |
221 if force_reload is None: |
|
222 force_reload = self.config.mode == 'dev' |
|
223 if force_reload: |
|
224 reload(uicfg) |
221 |
225 |
222 def __getitem__(self, name): |
226 def __getitem__(self, name): |
223 """return the registry (dictionary of class objects) associated to |
227 """return the registry (dictionary of class objects) associated to |
224 this name |
228 this name |
225 """ |
229 """ |