Esempio n. 1
0
    def __init__(self, *args, **kwargs):
        """
        Initializes a request object and the 'action' must be a function
        name that exists in the NNTPConnection(), you can optionally specify
        it the args and kwargs too.
        """
        Event.__init__(self)

        # Contains a list of objects returned by request made
        self.response = []

        # A Simple timer
        self._time_start = None
        self._time_finish = None
        self._time_elapsed = None

        # For iterating over decoded items
        self._iter = None
Esempio n. 2
0
    def __init__(self, *args, **kwargs):
        """
        Initializes a request object and the 'action' must be a function
        name that exists in the NNTPConnection(), you can optionally specify
        it the args and kwargs too.
        """
        Event.__init__(self)

        # Contains a list of objects returned by request made
        self.response = []

        # A Simple timer
        self._time_start = None
        self._time_finish = None
        self._time_elapsed = None

        # For iterating over decoded items
        self._iter = None
Esempio n. 3
0
 def __init__(self, i=-1):
     Event.__init__(self)
     self._data = None
     self.i = i