1.1 --- a/ItemSupport.py Sun Mar 10 01:16:50 2013 +0100
1.2 +++ b/ItemSupport.py Fri Apr 19 15:16:48 2013 +0200
1.3 @@ -25,6 +25,12 @@
1.4 self.writelock = lock.WriteLock(lock_dir)
1.5 self.readlock = lock.ReadLock(lock_dir)
1.6
1.7 + def mtime(self):
1.8 +
1.9 + "Return the last modified time of the item store directory."
1.10 +
1.11 + return os.path.getmtime(self.path)
1.12 +
1.13 def get_next(self):
1.14
1.15 "Return the next item number."
2.1 --- a/MoinSupport.py Sun Mar 10 01:16:50 2013 +0100
2.2 +++ b/MoinSupport.py Fri Apr 19 15:16:48 2013 +0200
2.3 @@ -949,11 +949,13 @@
2.4
2.5 "A page-specific item store."
2.6
2.7 - def __init__(self, page, item_dir=("items",), lock_dir=("item_locks",)):
2.8 + def __init__(self, page, item_dir="items", lock_dir="item_locks"):
2.9
2.10 "Initialise an item store for the given 'page'."
2.11
2.12 - ItemDirectoryStore.__init__(self, page.getPagePath(*item_dir), page.getPagePath(*lock_dir))
2.13 + item_dir_path = tuple(item_dir.split("/"))
2.14 + lock_dir_path = tuple(lock_dir.split("/"))
2.15 + ItemDirectoryStore.__init__(self, page.getPagePath(*item_dir_path), page.getPagePath(*lock_dir_path))
2.16 self.page = page
2.17
2.18 def can_write(self):
3.1 --- a/README.txt Sun Mar 10 01:16:50 2013 +0100
3.2 +++ b/README.txt Fri Apr 19 15:16:48 2013 +0200
3.3 @@ -69,8 +69,6 @@
3.4
3.5 * Added macro argument parsing from MoinForms and a function to find parsers
3.6 by content type.
3.7 - * Changed the item storage API to use path tuples instead of strings when
3.8 - specifying directories.
3.9 * Introduced support for reverse iteration over stored items.
3.10
3.11 New in MoinSupport 0.2 (Changes since MoinSupport 0.1)