from feincms.module.page.models import Page


def add_page_if_missing(request):
    """
    If this attribute exists, then a page object has been registered already
    by some other part of the code. We let it decide which page object it
    wants to pass into the template
    """

    if hasattr(request, '_feincms_page'):
        return {}

    try:
        return {
            'feincms_page': Page.objects.from_request(request, best_match=True),
            }
    except Page.DoesNotExist:
        return {}


def appcontent_parameters(request):
    # Remove in FeinCMS 1.4.
    return {}

from feincms.module.page.models import Page


def add_page_if_missing(request):
    """
    If this attribute exists, then a page object has been registered already
    by some other part of the code. We let it decide which page object it
    wants to pass into the template
    """

    if hasattr(request, '_feincms_page'):
        return {}

    try:
        return {
            'feincms_page': Page.objects.from_request(request, best_match=True),
            }
    except Page.DoesNotExist:
        return {}

Remove deprecated appcontent_parameters context processor
Remove deprecated appcontent_parameters context processor

It did nothing for some time anyway.
