Source code for superdjango.ui.context_processors

__author__ = "Shawn Davis <shawn@superdjango.com>"
__maintainer__ = "Shawn Davis <shawn@superdjango.com>"
__version__ = "0.3.0-d"

# Imports

from ..constants import FILTER, LIST, LOCATION, ORIENTATION, PAGINATION, SIZE, VERB
from ..options.interfaces import site

# Exports

__all__ = (
    "constants",
    "menu_items",
)

# Processors


[docs]def constants(request): """Include SuperDjango UI constants to the context. :param request: The current HTTP request instance. :rtype: dict """ return { 'FILTER': FILTER, 'LIST': LIST, 'LOCATION': LOCATION, 'ORIENTATION': ORIENTATION, 'PAGINATION': PAGINATION, 'SIZE': SIZE, 'VERB': VERB }