git.ucc.asn.au
/
zanchey
/
dispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misc cleanups
[zanchey/dispense2.git]
/
DispenseServer.py
diff --git
a/DispenseServer.py
b/DispenseServer.py
index
3c53c55
..
afbb78f
100755
(executable)
--- a/
DispenseServer.py
+++ b/
DispenseServer.py
@@
-6,11
+6,15
@@
from BankAccount import BankAccount
namespace = 'Dispense'
bind_port = 9900
namespace = 'Dispense'
bind_port = 9900
+server = None
+
+def hello():
+ return "hello"
+
if __name__ == '__main__':
server = SOAPServer(('0.0.0.0', 9900))
bank = BankAccount()
if __name__ == '__main__':
server = SOAPServer(('0.0.0.0', 9900))
bank = BankAccount()
- for f in []:
+ for f in [
hello
]:
server.registerFunction(f, namespace)
server.registerFunction(f, namespace)
- print "Serving ..."
+ print "Serving
forever
..."
server.serve_forever()
server.serve_forever()
-
UCC
git Repository :: git.ucc.asn.au