blob: 78911c3b096c7eb4d62198ade928a4de80023f4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env python
# vim: set filencoding=utf8
"""
Exchange Calendar Proxy Server
@author: Mike Crute (mcrute@gmail.com)
@organization: SoftGroup Interactive, Inc.
@date: April 26, 2009
"""
from util import config_dict
from exchange.wsgi import CalendarApp
from wsgiref.simple_server import make_server
def main():
config = config_dict('exchange.cfg')
try:
app = CalendarApp(config['exchange']['server'],
config['exchange']['user'],
config['exchange']['password'])
make_server(config['local_server']['address'],
config['local_server']['port'], app).serve_forever()
except KeyboardInterrupt:
print '\n All done, shutting down.'
if __name__ == '__main__':
main()
|