ucscsdk/ucsceventhandler.py
def _enqueue_function(self):
        """
        Internal method used by add_event_handler.
        Provides functionality of enqueue/dequeue of the events and
        triggering callbacks.
        """

        try:
            xml_query = '<eventSubscribe cookie="%s"/>' % self._handle.cookie
            self._event_chan_resp = self._handle.post_xml(
                xml_str=xml_query.encode(), read=False)
        except Exception:
            raise

        try:
            while self._can_enqueue():
                msg_len = self._read_msg_length(self._event_chan_resp)
                resp = self._event_chan_resp.read(msg_len)
                self._process_event_channel_resp(resp)

            if len(self._wbs) == 0:
                self._condition.acquire()
                self._condition.notify()
                self._condition.release()
        except:
            raise

        Internal method used by add_event_handler.
        Provides functionality of enqueue/dequeue of the events and
        triggering callbacks.
        
Internal method used by add_event_handler.
Provides functionality of enqueue/dequeue of the events and
triggering callbacks.
Internal method used by add_event_handler . Provides functionality of enqueue / dequeue of the events and triggering callbacks .
def _enqueue_function(self):
        try:
            xml_query = '<eventSubscribe cookie="%s"/>' % self._handle.cookie
            self._event_chan_resp = self._handle.post_xml(
                xml_str=xml_query.encode(), read=False)
        except Exception:
            raise
        try:
            while self._can_enqueue():
                msg_len = self._read_msg_length(self._event_chan_resp)
                resp = self._event_chan_resp.read(msg_len)
                self._process_event_channel_resp(resp)
            if len(self._wbs) == 0:
                self._condition.acquire()
                self._condition.notify()
                self._condition.release()
        except:
            raise
def _enqueue_function ( self ) : try : xml_query = '<eventSubscribe cookie="%s"/>' % self . _handle . cookie self . _event_chan_resp = self . _handle . post_xml ( xml_str = xml_query . encode ( ) , read = False ) except Exception : raise try : while self . _can_enqueue ( ) : msg_len = self . _read_msg_length ( self . _event_chan_resp ) resp = self . _event_chan_resp . read ( msg_len ) self . _process_event_channel_resp ( resp ) if len ( self . _wbs ) == 0 : self . _condition . acquire ( ) self . _condition . notify ( ) self . _condition . release ( ) except : raise
Internal method used by add_event_handler.
Internal method used by add_event_handler .
"""
        Internal method used by add_event_handler.
        Provides functionality of enqueue/dequeue of the events and
        triggering callbacks.
        """
self