Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(41)  |  Call(0)  |  Derive(41)  |  Import(0)

src/m/o/mozpool-4.1.5/mozpool/lifeguard/devicemachine.py   mozpool(Download)
class new(AcceptPleaseRequests, statemachine.State):
    "This device is newly installed.  Begin by self-testing."
    TIMEOUT = 0
class unknown(AcceptPleaseRequests, statemachine.State):
    "This device is in an unknown state.  Await instructions."
class locked_out(statemachine.State):
class troubleshooting(AcceptPleaseRequests, statemachine.State):
    This device is in a troubleshooting state and will not timeout.
    A 'please_' event or force state must be used to move the device
    back into a 'normal' state.
class ready(AcceptPleaseRequests, statemachine.State):

src/m/o/mozpool-4.1.5/mozpool/mozpool/requestmachine.py   mozpool(Download)
class new(Closable, statemachine.State):
    "New request; no action taken yet."
    def on_find_device(self, args):
class finding_device(Closable, statemachine.State):
class contact_lifeguard(Closable, statemachine.State):
    """About to contact lifeguard, after a timeout.  This allows find_device to
    return before beginning to contact lifeguard, which can take a while when
    the DB is slow."""
class contacting_lifeguard(Closable, statemachine.State):
    "Contacting device's lifeguard server to request reimage/reboot."
    TIMEOUT = 30
class pending(Closable, statemachine.State):
    "Request is pending while a device is located and prepared."
    # This is used as a polling interval, in case we miss a notification from
    # lifeguard that the operation is finished.

src/m/o/mozpool-4.1.5/mozpool/test/unit/test_statemachine.py   mozpool(Download)
class state1(statemachine.State):
    TIMEOUT = 10
    called_on_poke = False
class state2(statemachine.State):
    TIMEOUT = 20
    def on_timeout(self):
    class state2(statemachine.State):
class Tests(TestCase):