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