blob: e190345722d098061d466ed9abd0c04efdaff51c (
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
|
#!/usr/bin/env python
# vim: set filencoding=utf8
"""
Exchange Calendar CLI App
@author: Mike Crute (mcrute@ag.com)
@organization: American Greetings Interactive
@date: May 02, 2011
"""
from os import path
from util import config_dict
from exchange.wsgi import CalendarApp
from wsgiref.simple_server import make_server
def main():
config = config_dict(path.expanduser('~/.exchange.cfg'))
password = open(path.expanduser('~/.exchange.pass'), 'r').read()
app = CalendarApp(config['exchange']['server'],
config['exchange']['user'],
password)
print app(None, lambda x, y: None)
if __name__ == '__main__':
main()
|