Legacy Journal with old timestamps

This commit is contained in:
Manuel Ebert 2015-04-05 02:19:13 +04:00
parent f68ca1221e
commit 9c7d5af152
2 changed files with 54 additions and 1 deletions

View file

@ -63,7 +63,9 @@ class EncryptedJournal(Journal.Journal):
f.write(dummy)
class LegacyEncryptedJournal(Journal.Journal):
class LegacyEncryptedJournal(Journal.LegacyJournal):
"""Legacy class to support opening journals encrypted with the jrnl 1.x
standard. You'll not be able to save these journals anymore."""
def __init__(self, name='default', **kwargs):
super(LegacyEncryptedJournal, self).__init__(name, **kwargs)
self.config['encrypt'] = True