summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2011-05-02 14:20:07 -0400
committerMike Crute <mcrute@gmail.com>2011-05-02 14:20:07 -0400
commit295883dab560fc922bbac9527f83f79139da4967 (patch)
tree3bbd4fbb68b904726a89a302dc427742a018b3f8
parent7dc4e3994b0485ea57525f1c130f35bb0f382539 (diff)
downloadcalendar_proxy-295883dab560fc922bbac9527f83f79139da4967.tar.bz2
calendar_proxy-295883dab560fc922bbac9527f83f79139da4967.tar.xz
calendar_proxy-295883dab560fc922bbac9527f83f79139da4967.zip
Adding cli version of the serverHEADmaster
-rwxr-xr-xcli.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/cli.py b/cli.py
new file mode 100755
index 0000000..e190345
--- /dev/null
+++ b/cli.py
@@ -0,0 +1,29 @@
1#!/usr/bin/env python
2# vim: set filencoding=utf8
3"""
4Exchange Calendar CLI App
5
6@author: Mike Crute (mcrute@ag.com)
7@organization: American Greetings Interactive
8@date: May 02, 2011
9"""
10
11from os import path
12from util import config_dict
13from exchange.wsgi import CalendarApp
14from wsgiref.simple_server import make_server
15
16
17def main():
18 config = config_dict(path.expanduser('~/.exchange.cfg'))
19 password = open(path.expanduser('~/.exchange.pass'), 'r').read()
20
21 app = CalendarApp(config['exchange']['server'],
22 config['exchange']['user'],
23 password)
24
25 print app(None, lambda x, y: None)
26
27
28if __name__ == '__main__':
29 main()