Пример #1
0
def get_editor(request):
    editor_less.need()

    return {
        'project': 'm4ed',
        'items': request.context
    }
Пример #2
0
Файл: index.py Проект: aape/m4ed
def get_edit_index(request):
    editor_less.need()
    spaces_array = []
    for space in request.context:
        spaces_array.append(space)

    return {
        'spaces': request.context,
        'spaces_array': spaces_array
    }
Пример #3
0
def get_edit_cluster(request):
    editor_less.need()
    return {
        'cluster': request.context.stripped,
        'space_title': request.context.get_space_title()
    }
Пример #4
0
Файл: space.py Проект: aape/m4ed
def get_edit_space(request):
    editor_less.need()
    return {
        'space': request.context.stripped
    }