def client_start(signal=None, sender=None): partyClient = Client(settings.GCHAT_USER, settings.GCHAT_PASS, received, settings.GCHAT_ROOMS) # give the surrogate something to hold on to. Surrogate.set(partyClient) # kick off the xmpp client partyClient.start()
def client_stop(signal=None, sender=None): Surrogate.get().stopThePresses()