"""
sentry.nodestore.base
~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""

from __future__ import absolute_import


class NodeStorage(object):
    def get(self, id):
        raise NotImplementedError

    def get_multi(self, id_list):
        return dict(
            (id, self.get(id))
            for id in id_list
        )

    def set(self, id, data, timestamp=None):
        raise NotImplementedError

    def set_multi(self, values):
        for v in values:
            self.set(**v)

@@ -208,16 +208,29 @@
 import%0A%0A
+import uuid%0A%0A
 %0Aclass N
@@ -245,24 +245,154 @@
 ge(object):%0A
+    def create(self, data, timestamp=None):%0A        node_id = uuid.uuid4().hex%0A        return self.set(node_id, data, timestamp)%0A%0A
     def get(

Add NodeStorage.create