# Path: pynuts/git.py
# class NotFoundError(GitException):
#     """No such file or directory (blob or tree)."""


import json
import docutils.core
from docutils.parsers.rst import directives, Directive
from .git import NotFoundError
        self.attributes.update({
            key: ' '.join(values) for key, values in self.options.items()})
        self.attributes = {
            key: value for key, value in self.attributes.items() if value}
        self.parsed_content = self.document.git.read(part).decode('utf-8')


class Editable(_Tag):
    """ReST directive creating an HTML contenteditable tag.

    The directive's argument must look like this:
    `document_type/document_id/version/part`

    You can put those optional attributes on your editable content:

    - `title`
    - `id`
    - `class`

    """
    option_spec = {
        'title': directives.unchanged,
        'class': directives.class_option,
        'id': directives.class_option,
        'contenteditable': directives.class_option,
    }

    def run(self):
        try:
            super(Editable, self).run()

# Path: pynuts/git.py
# class NotFoundError(GitException):
#     """No such file or directory (blob or tree)."""


# Path: pynuts/directives.py
import json
import docutils.core
from docutils.parsers.rst import directives, Directive
from .git import NotFoundError

        self.attributes.update({
            key: ' '.join(values) for key, values in self.options.items()})
        self.attributes = {
            key: value for key, value in self.attributes.items() if value}
        self.parsed_content = self.document.git.read(part).decode('utf-8')


class Editable(_Tag):
    """ReST directive creating an HTML contenteditable tag.

    The directive's argument must look like this:
    `document_type/document_id/version/part`

    You can put those optional attributes on your editable content:

    - `title`
    - `id`
    - `class`

    """
    option_spec = {
        'title': directives.unchanged,
        'class': directives.class_option,
        'id': directives.class_option,
        'contenteditable': directives.class_option,
    }

    def run(self):
        try:
            super(Editable, self).run()

        except NotFoundError: