twistedsnmp
.
utilities
.synchronous
index
/home/mcfletch/pylive/twistedsnmp/utilities/synchronous.py
Modules
twisted.internet.defer
Classes
object
DoUntilFinished
class
DoUntilFinished
(
object
)
Methods defined here:
OnFailure
(self, errorMessage)
OnSuccess
(self, result)
OnTimeout
(self)
On a timeout condition, raise an error
__call__
(self, timeout
=None
)
__init__
(self, *defers)
Initialise the
DoUntilFinished
instance
defers -- Defer objects to be handled
Data and other attributes defined here:
__dict__
= <dictproxy object>
dictionary for instance variables (if defined)
__weakref__
= <attribute '__weakref__' of 'DoUntilFinished' objects>
list of weak references to the
object
(if defined)
finished
= 0
result
= None
success
= 0
timeout
= 0
Functions
doUntil
(*defers)
Run a set of defers until complete
synchronous
(timeout, callable, *arguments, **named)
Call callable in twisted
timeout -- timeout in seconds, specify 0 or None to disable
callable -- defer-returning callable
object
arguments, named -- passed to callable within reactor
returns (success, result/error)
Data
reactor
= <twisted.internet.selectreactor.SelectReactor instance>