equal
deleted
inserted
replaced
490 """update .schema attribute on registered objects, necessary for some |
490 """update .schema attribute on registered objects, necessary for some |
491 tests |
491 tests |
492 """ |
492 """ |
493 self.schema = schema |
493 self.schema = schema |
494 for registry, regcontent in self.items(): |
494 for registry, regcontent in self.items(): |
495 for objects in regcontent.itervalues(): |
495 for objects in regcontent.values(): |
496 for obj in objects: |
496 for obj in objects: |
497 obj.schema = schema |
497 obj.schema = schema |
498 |
498 |
499 def register(self, obj, *args, **kwargs): |
499 def register(self, obj, *args, **kwargs): |
500 """register `obj` application object into `registryname` or |
500 """register `obj` application object into `registryname` or |
541 self.debug('unregister %s (no %s object in registry %s)', |
541 self.debug('unregister %s (no %s object in registry %s)', |
542 registry.objid(obj), ' or '.join(regids), regname) |
542 registry.objid(obj), ' or '.join(regids), regname) |
543 self.unregister(obj) |
543 self.unregister(obj) |
544 super(CWRegistryStore, self).initialization_completed() |
544 super(CWRegistryStore, self).initialization_completed() |
545 if 'uicfg' in self: # 'uicfg' is not loaded in a pure repository mode |
545 if 'uicfg' in self: # 'uicfg' is not loaded in a pure repository mode |
546 for rtags in self['uicfg'].itervalues(): |
546 for rtags in self['uicfg'].values(): |
547 for rtag in rtags: |
547 for rtag in rtags: |
548 # don't check rtags if we don't want to cleanup_unused_appobjects |
548 # don't check rtags if we don't want to cleanup_unused_appobjects |
549 rtag.init(self.schema, check=self.config.cleanup_unused_appobjects) |
549 rtag.init(self.schema, check=self.config.cleanup_unused_appobjects) |
550 |
550 |
551 # rql parsing utilities #################################################### |
551 # rql parsing utilities #################################################### |