def __init__(self, trigger, element, file_path, **kwargs):
        """
        Initialize a new Response instance
        :param trigger: The Trigger instance
        :type  trigger: Trigger

        :param element: The XML Element object
        :type  element: etree._Element

        :param file_path: The absolute path to the AgentML file
        :type  file_path: str

        :param kwargs: Default attributes
        """
        self.priority = int_attribute(element, 'priority')
        self.weight = int_attribute(element, 'weight', 1)
        self.trigger = trigger

        # If the redirect attribute is True, the response will contain a template used to request a different response,
        # otherwise it contains a template for the response message
        self._response = ()
        self.redirect = False

        # What the topic should be *changed* to after this response is sent. False = No change
        self.topic = False

        # Variables to set, list of tuple(type, name, value)
        self.vars = []

        # Wildcard containers
        self.stars = {
            'normalized': (),
            'case_preserved': (),
            'raw': ()
        }

        Restrictable.__init__(self)
        Element.__init__(self, trigger.agentml, element, file_path)

        # Blocking attributes
        self.ulimit_blocking = False
        self.glimit_blocking = False
        self.chance_blocking = False

        self._log = logging.getLogger('agentml.parser.trigger.response')
def __init__ ( self , trigger , element , file_path , ** kwargs ) : self . priority = int_attribute ( element , 'priority' ) self . weight = int_attribute ( element , 'weight' , 1 ) self . trigger = trigger self . _response = ( ) self . redirect = False self . topic = False self . vars = [ ] self . stars = { 'normalized' : ( ) , 'case_preserved' : ( ) , 'raw' : ( ) } Restrictable . __init__ ( self ) Element . __init__ ( self , trigger . agentml , element , file_path ) self . ulimit_blocking = False self . glimit_blocking = False self . chance_blocking = False self . _log = logging . getLogger ( 'agentml.parser.trigger.response' )
Initialize a new Response instance
        :param trigger: The Trigger instance
        :type  trigger: Trigger

        :param element: The XML Element object
        :type  element: etree._Element

        :param file_path: The absolute path to the AgentML file
        :type  file_path: str

        :param kwargs: Default attributes