# HG changeset patch # User Paul Boddie # Date 1437841100 -7200 # Node ID 466eb0f729897b502be079309976e87216af1a15 # Parent b21fa6e466a7b06def4ed3a2d218d0733d4f70e2 Changed the default store and publisher directory parameters so that None may be used to indicate usage of the default locations. diff -r b21fa6e466a7 -r 466eb0f72989 imip_store.py --- a/imip_store.py Sat Jul 25 01:17:39 2015 +0200 +++ b/imip_store.py Sat Jul 25 18:18:20 2015 +0200 @@ -34,8 +34,8 @@ "A file store of tabular free/busy data and objects." - def __init__(self, store_dir=STORE_DIR): - FileBase.__init__(self, store_dir) + def __init__(self, store_dir=None): + FileBase.__init__(self, store_dir or STORE_DIR) def acquire_lock(self, user, timeout=None): FileBase.acquire_lock(self, timeout, user) @@ -499,8 +499,8 @@ "A publisher of objects." - def __init__(self, store_dir=PUBLISH_DIR): - FileBase.__init__(self, store_dir) + def __init__(self, store_dir=None): + FileBase.__init__(self, store_dir or PUBLISH_DIR) def set_freebusy(self, user, freebusy):