X-Git-Url: https://git.ucc.asn.au/?p=uccdoor.git;a=blobdiff_plain;f=client-xmpp.py;h=2344158c828f4fbf2bef914baf97b2fdb77334ad;hp=6eebce7ab3e70d735095d45886257e046e2551c4;hb=5b9ac7b57e1da38571cb111e8c0005ce6dee035c;hpb=f3611890611e436484fc213b39b8a4f5bd691cd6 diff --git a/client-xmpp.py b/client-xmpp.py index 6eebce7..2344158 100755 --- a/client-xmpp.py +++ b/client-xmpp.py @@ -48,11 +48,11 @@ class Door(object): syslog.syslog(142, "get_status failed: %s" % e) pass - self.state_changed(new_state) self.doorname = doorname + self.state_changed(new_state) def state_changed(self, new_state): - print "xmpp state change detected for %s from %i to %i" % (self.doorname, self.state, newstate) + print "xmpp state change detected for %s from %i to %i" % (self.doorname, self.state, new_state) self.state = new_state # look up the dictionary object for the current state, then construct # a presence object using that as a keyword argument