コード例 #1
0
ファイル: views.py プロジェクト: stevencox/grayson
def get_flows (request):
    controller = ViewController ()
    flows = controller.findFlows (request)
    for flow in flows:
        flowId = flow ['flow']
        flowId = flowId.replace ('-', '_').replace ('.grayson_upk', '')
        flow ['flow'] = flowId
        
        flow ['runCount'] = len (flow ['runs'])

    return flows
コード例 #2
0
ファイル: views.py プロジェクト: stevencox/grayson
def connect_flows (request):
    controller = ViewController ()
    response = controller.findFlows (request)
    return ViewUtil.get_json_response (response)