Ejemplo n.º 1
0
def runs (request):
    flow = request.REQUEST ['flow']
    response = ViewUtil.get_text_response ('fail')
    if flow:
        flows = get_flows (request)
        for f in flows:
            logger.error ('argh %s', f)
            print 'argh %s' % f
            name = f ['flow']
            if flow == name:
                context = {
                    'flow'  : f
                    }
                response = ViewUtil.get_response (get_template_name ('runs.html'), request, context)
                break
    return response
Ejemplo n.º 2
0
def flows (request):
    context = {
        'flows' : get_flows (request)
        }
    return ViewUtil.get_response (get_template_name ('flows.html'), request, context)
Ejemplo n.º 3
0
def about (request):
    return ViewUtil.get_response (get_template_name ('about.html'), request, {})
Ejemplo n.º 4
0
def home (request):
    context = {}
    return ViewUtil.get_response (get_template_name ('index.html'), request, {})
Ejemplo n.º 5
0
def home (request, tests=False):
    context = {
        "clientId"         : ViewUtil.get_app_username (request),
        "client_unit_test" : tests
        }
    return ViewUtil.get_response ("graysonapp/html/app.html", request, context)
Ejemplo n.º 6
0
def mobile (request, tests=False):
    context = {}
    return ViewUtil.get_response ("mobile/html/index.html", request, context)
Ejemplo n.º 7
0
def get_app_conf (request):
    return ViewUtil.get_response (template = 'conf.js',
                                        request  = request,
                                        context  = {},
                                        mimeType = 'text/application-javascript')