# Path: contentious/api.py
# class ContentiousInterface(object):
#     def in_edit_mode(self, template_context):
#     def get_content_data(self, key, template_context):
#     def save_content_data(self, key, data, template_context):
#     def pre_render(self, tag_spec, meta):
# def get_api():
# 
# Path: contentious/compat.py
# def get_request_context(request):
#     context = RequestContext(request)
# 
#     if 'request' not in context:
#         context.update({'request': request})
# 
#     return context


from django.http import HttpResponseForbidden
from contentious.api import api
from contentious.compat import get_request_context
#LIBRARIES

#CONTENTIOUS


def require_edit_mode(function):
    """ View function decorator for requiring api.in_edit_mode to be True. """
    def replacement(request, *args, **kwargs):
        context = get_request_context(request)

# Path: contentious/api.py
# class ContentiousInterface(object):
#     def in_edit_mode(self, template_context):
#     def get_content_data(self, key, template_context):
#     def save_content_data(self, key, data, template_context):
#     def pre_render(self, tag_spec, meta):
# def get_api():
# 
# Path: contentious/compat.py
# def get_request_context(request):
#     context = RequestContext(request)
# 
#     if 'request' not in context:
#         context.update({'request': request})
# 
#     return context


# Path: contentious/decorators.py
from django.http import HttpResponseForbidden
from contentious.api import api
from contentious.compat import get_request_context

#LIBRARIES

#CONTENTIOUS


def require_edit_mode(function):
    """ View function decorator for requiring api.in_edit_mode to be True. """
    def replacement(request, *args, **kwargs):
        context = get_request_context(request)

        if not api.in_edit_mode(context):