cwvreg.py
branchstable
changeset 3638 648d6dbec630
parent 3316 c4c07aab1c39
child 3641 cf30e4498674
equal deleted inserted replaced
3637:0a0e86cb5c89 3638:648d6dbec630
   335             self._needs_iface[obj] = ifaces
   335             self._needs_iface[obj] = ifaces
   336 
   336 
   337     def register_objects(self, path, force_reload=None):
   337     def register_objects(self, path, force_reload=None):
   338         """overriden to remove objects requiring a missing interface"""
   338         """overriden to remove objects requiring a missing interface"""
   339         if force_reload is None:
   339         if force_reload is None:
   340             force_reload = self.config.mode == 'dev'
   340             force_reload = self.config.debug
   341         try:
   341         try:
   342             self._register_objects(path, force_reload)
   342             self._register_objects(path, force_reload)
   343         except RegistryOutOfDate:
   343         except RegistryOutOfDate:
   344             CW_EVENT_MANAGER.emit('before-registry-reload')
   344             CW_EVENT_MANAGER.emit('before-registry-reload')
   345             # modification detected, reset and reload
   345             # modification detected, reset and reload