def registerStereotypeScope(name, transform, class_=StereotypeScope): name = '%s.%s' % (transform, name) _chkregistered(IScope, name=name) scope = class_() provideUtility(scope, provides=IScope, name=name)
def registerXMIScope(name, transform, tags, type, class_=XMIScope): name = '%s.%s' % (transform, name) _chkregistered(IScope, name=name) scope = class_(name, tags, type) provideUtility(scope, provides=IScope, name=name)