Example #1
0
File: editor.py Project: aape/m4ed
def get_editor(request):
    editor_less.need()

    return {
        'project': 'm4ed',
        'items': request.context
    }
Example #2
0
File: index.py Project: 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
    }
Example #3
0
File: cluster.py Project: aape/m4ed
def get_edit_cluster(request):
    editor_less.need()
    return {
        'cluster': request.context.stripped,
        'space_title': request.context.get_space_title()
    }
Example #4
0
File: space.py Project: aape/m4ed
def get_edit_space(request):
    editor_less.need()
    return {
        'space': request.context.stripped
    }