Example #1
0
def supply(request, page_name):
    """Supplies view_objects for smartgrid widgets."""
    _ = page_name

    user = request.user

    return {
        "levels": smartgrid.get_level_actions(user),
    }
Example #2
0
def supply(request, page_name):
    """Supplies view_objects for smartgrid widgets."""
    _ = page_name

    user = request.user

    return {
        "levels": smartgrid.get_level_actions(user),
        }
def supply(request, page_name):
    """Supplies view_objects for smartgrid widgets."""
    _ = page_name

    user = request.user

    grid = smartgrid.get_level_actions(user)
#     print grid[0][2][0]
#     print "[%s, %s] is_unlock=%s, completed=%s, availability=%s, max_columns=%s, max_rows=%s" %\
#      (grid[0][2][0].column, grid[0][2][0].row, grid[0][2][0].is_unlock, grid[0][2][0].completed,
#       grid[0][2][0].availablity, grid[0][4], grid[0][5])
#     print grid[0][2][0]._meta.module_name
    return {
        "levels": smartgrid.get_levels(user),
        "grid": grid,
        }
Example #4
0
def supply(request, page_name):
    """Supplies view_objects for smartgrid widgets."""
    _ = page_name

    user = request.user

    grid = smartgrid.get_level_actions(user)
    #     print grid[0][2][0]
    #     print "[%s, %s] is_unlock=%s, completed=%s, availability=%s, max_columns=%s, max_rows=%s" %\
    #      (grid[0][2][0].column, grid[0][2][0].row, grid[0][2][0].is_unlock, grid[0][2][0].completed,
    #       grid[0][2][0].availablity, grid[0][4], grid[0][5])
    #     print grid[0][2][0]._meta.module_name
    return {
        "levels": smartgrid.get_levels(user),
        "grid": grid,
    }