diff options
author | Radomir Dopieralski <sheep-devel@sheep.art.pl> | 2013-07-28 09:00:55 (GMT) |
---|---|---|
committer | Radomir Dopieralski <sheep-devel@sheep.art.pl> | 2013-07-28 09:00:55 (GMT) |
commit | 611e7cddee42a62bb1ec0dced6060b6305ff4a95 (patch) | |
tree | 0bec5dc5a1e25bc5828919d7a8d4e12af95e489b | |
parent | 1a1163a73f867fe5be652f28294881a61d3938b1 (diff) |
Make sure we are at the tip before saving
-rw-r--r-- | hatta/storage.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hatta/storage.py b/hatta/storage.py index ae70a39..3f77a58 100644 --- a/hatta/storage.py +++ b/hatta/storage.py @@ -196,6 +196,7 @@ class WikiStorage(object): def save_data(self, title, data, author=None, comment=None, parent_rev=None): """Save a new revision of the page. If the data is None, deletes it.""" + self.reopen() # Make sure we are at the tip. _ = self._ user = (author or _(u'anon')).encode('utf-8') text = (comment or _(u'comment')).encode('utf-8') |