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