cwvreg.py
changeset 3674 387d51af966d
parent 3655 af86ab65a282
parent 3641 cf30e4498674
child 3720 5376aaadd16b
equal deleted inserted replaced
3661:12ea53a4c0da 3674:387d51af966d
   342             self._needs_iface[obj] = ifaces
   342             self._needs_iface[obj] = ifaces
   343 
   343 
   344     def register_objects(self, path, force_reload=None):
   344     def register_objects(self, path, force_reload=None):
   345         """overriden to remove objects requiring a missing interface"""
   345         """overriden to remove objects requiring a missing interface"""
   346         if force_reload is None:
   346         if force_reload is None:
   347             force_reload = self.config.mode == 'dev'
   347             force_reload = self.config.debugmode
   348         try:
   348         try:
   349             self._register_objects(path, force_reload)
   349             self._register_objects(path, force_reload)
   350         except RegistryOutOfDate:
   350         except RegistryOutOfDate:
   351             CW_EVENT_MANAGER.emit('before-registry-reload')
   351             CW_EVENT_MANAGER.emit('before-registry-reload')
   352             # modification detected, reset and reload
   352             # modification detected, reset and reload