Skip to content

Commit

Permalink
Define simple metadata interface in storage.base
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Apr 28, 2015
1 parent 2b3e53a commit 042a59e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions vdirsyncer/storage/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,22 @@ def at_once(self):
when.
'''
yield

def get_meta(self, key):
'''Get metadata value for collection/storage.
:param key: The metadata key.
:type key: unicode
'''
raise NotImplementedError()

def set_meta(self, key, value):
'''Get metadata value for collection/storage.
:param key: The metadata key.
:type key: unicode
:param value: The value.
:type value: unicode
'''

raise NotImplementedError()

0 comments on commit 042a59e

Please sign in to comment.