1.1 --- a/imiptools/stores/file.py Mon Jan 30 23:23:30 2017 +0100
1.2 +++ b/imiptools/stores/file.py Mon Jan 30 23:28:11 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 A simple filesystem-based store of calendar data.
1.6
1.7 -Copyright (C) 2014, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -22,7 +22,7 @@
1.13 from imiptools.stores.common import StoreBase, PublisherBase, JournalBase
1.14
1.15 from datetime import datetime
1.16 -from imiptools.config import STORE_DIR, PUBLISH_DIR, JOURNAL_DIR
1.17 +from imiptools.config import settings
1.18 from imiptools.data import make_calendar, parse_object, to_stream
1.19 from imiptools.dates import format_datetime, get_datetime, to_timezone
1.20 from imiptools.filesys import fix_permissions, FileBase
1.21 @@ -34,6 +34,10 @@
1.22 from os import listdir, remove, rmdir
1.23 import codecs
1.24
1.25 +STORE_DIR = settings["STORE_DIR"]
1.26 +PUBLISH_DIR = settings["PUBLISH_DIR"]
1.27 +JOURNAL_DIR = settings["JOURNAL_DIR"]
1.28 +
1.29 class FileStoreBase(FileBase):
1.30
1.31 "A file store supporting user-specific locking and tabular data."