def __setattr__(self, name, value): if name == "target" and type(value) == types.StringType: value = utils.getClass(value)() elif name == "interceptors" and not isinstance(value, list): value = [value] self.__dict__[name] = value
def __setattr__(self, name, value): if name == "clazz" and value is not None: self.__dict__[name] = value self.middleware = utils.getClass(value)(None) else: self.__dict__[name] = value
def __setattr__(self, name, value): if name == "target" and type(value) == types.StringType: self.__dict__[name] = utils.getClass(value)() else: self.__dict__[name] = value