Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
 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
Esempio n. 4
0
 def __setattr__(self, name, value):
     if name == "target" and type(value) == types.StringType:
         self.__dict__[name] = utils.getClass(value)()
     else:
         self.__dict__[name] = value
Esempio n. 5
0
 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