1.1 --- a/imip_store.py Sat Oct 25 21:44:24 2014 +0200
1.2 +++ b/imip_store.py Sun Oct 26 00:45:20 2014 +0200
1.3 @@ -1,18 +1,11 @@
1.4 #!/usr/bin/env python
1.5
1.6 from datetime import datetime
1.7 +from imiptools.config import STORE_DIR, PUBLISH_DIR
1.8 from os.path import abspath, commonprefix, exists, join, split
1.9 from os import makedirs
1.10 from vCalendar import iterwrite
1.11
1.12 -# The location of the stored calendar information.
1.13 -
1.14 -STORE_DIR = "/var/lib/imip-agent/store"
1.15 -
1.16 -# The location of published static free/busy information.
1.17 -
1.18 -PUBLISH_DIR = "/var/www/imip-agent/static"
1.19 -
1.20 def check_dir(base, dir):
1.21 return commonprefix([base, abspath(dir)]) == base
1.22
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/imiptools/config.py Sun Oct 26 00:45:20 2014 +0200
2.3 @@ -0,0 +1,11 @@
2.4 +#!/usr/bin/env python
2.5 +
2.6 +# The location of the stored calendar information.
2.7 +
2.8 +STORE_DIR = "/var/lib/imip-agent/store"
2.9 +
2.10 +# The location of published static free/busy information.
2.11 +
2.12 +PUBLISH_DIR = "/var/www/imip-agent/static"
2.13 +
2.14 +# vim: tabstop=4 expandtab shiftwidth=4