equal
deleted
inserted
replaced
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 |