allow dispensing of actual snacks.
[uccvend-vendserver.git] / DispenseServer.py
index 3c53c55..afbb78f 100755 (executable)
@@ -6,11 +6,15 @@ from BankAccount import BankAccount
 namespace = 'Dispense'
 bind_port = 9900
 
+server = None
+
+def hello():
+       return "hello"
+
 if __name__ == '__main__':
        server = SOAPServer(('0.0.0.0', 9900))
        bank = BankAccount()
-       for f in []:
+       for f in [hello]:
                server.registerFunction(f, namespace)
-       print "Serving ..."
+       print "Serving forever ..."
        server.serve_forever()
-

UCC git Repository :: git.ucc.asn.au