comparison MoinMoin/jabber/main.py @ 2088:a99ed13fec1e

Introduce a shared secret for wiki-bot communication + some code style fixes.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 03 Jun 2007 19:44:56 +0200
parents 9c66c85a6a70
children
comparison
equal deleted inserted replaced
2087:a94187915111 2088:a99ed13fec1e
15 15
16 from config import Config 16 from config import Config
17 from xmppbot import XMPPBot 17 from xmppbot import XMPPBot
18 from xmlrpcbot import XMLRPCServer, XMLRPCClient 18 from xmlrpcbot import XMLRPCServer, XMLRPCClient
19 from Queue import Queue 19 from Queue import Queue
20
20 21
21 def main(): 22 def main():
22 args = sys.argv 23 args = sys.argv
23 24
24 if "--help" in args: 25 if "--help" in args:
44 xmlrpc_server.start() 45 xmlrpc_server.start()
45 46
46 except KeyboardInterrupt, i: 47 except KeyboardInterrupt, i:
47 print i 48 print i
48 sys.exit(0) 49 sys.exit(0)
50
49 51
50 if __name__ == "__main__": main() 52 if __name__ == "__main__": main()