1.1 --- a/imiptools/stores/file.py Tue May 23 22:15:05 2017 +0200
1.2 +++ b/imiptools/stores/file.py Wed May 24 15:41:14 2017 +0200
1.3 @@ -23,7 +23,7 @@
1.4
1.5 from datetime import datetime
1.6 from imiptools.config import settings
1.7 -from imiptools.data import make_calendar, parse_object, to_stream
1.8 +from imiptools.data import Object, make_calendar, parse_object, to_stream
1.9 from imiptools.dates import format_datetime, get_datetime, to_timezone
1.10 from imiptools.filesys import fix_permissions, FileBase
1.11 from imiptools.freebusy import FreeBusyPeriod, FreeBusyGroupPeriod, \
1.12 @@ -40,6 +40,8 @@
1.13 PUBLISH_DIR = settings["PUBLISH_DIR"]
1.14 JOURNAL_DIR = settings["JOURNAL_DIR"]
1.15
1.16 +# Store classes.
1.17 +
1.18 class FileStoreBase(FileBase):
1.19
1.20 "A file store supporting user-specific locking and tabular data."
1.21 @@ -168,7 +170,7 @@
1.22 try:
1.23 f = open(filename, "rb")
1.24 try:
1.25 - return parse_object(f, "utf-8")
1.26 + return Object(parse_object(f, "utf-8"))
1.27 finally:
1.28 f.close()
1.29 finally: