1.1 --- a/imiptools/stores/__init__.py Tue Dec 20 23:33:05 2016 +0100
1.2 +++ b/imiptools/stores/__init__.py Thu Jan 26 17:16:21 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 General support for calendar data storage.
1.6
1.7 -Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 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 @@ -19,15 +19,7 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from imiptools.stores import file
1.17 -from imiptools.stores.database import stores as database_stores
1.18 -
1.19 -# Build a catalogue of store types.
1.20 -
1.21 -stores = {
1.22 - "file" : file,
1.23 - }
1.24 -stores.update(database_stores)
1.25 +from imiptools.stores.manifest import stores
1.26
1.27 # Access functions.
1.28
1.29 @@ -35,7 +27,7 @@
1.30 return stores[store_type].Store(store_dir)
1.31
1.32 def get_publisher(publishing_dir):
1.33 - return file.Publisher(publishing_dir)
1.34 + return stores["file"].Publisher(publishing_dir)
1.35
1.36 def get_journal(store_type, journal_dir):
1.37 return stores[store_type].Journal(journal_dir)