コード例 #1
0
ファイル: options.py プロジェクト: GPPowerTrip/Client
def task_check(context):
    if len(context['args']) == 0: return "Invalid parameters"
    while True:
        result = json.loads(operations.parameter(context))
        if not (len(context['args']) > 1 and context['args'][1] == 'block' and result['complete'] != True): break
        time.sleep(10)
    return json.dumps(result, indent=2)
コード例 #2
0
ファイル: options.py プロジェクト: GPPowerTrip/Client
def plugin_help(context):
    if len(context['args']) == 0: return "Invalid parameters"
    return json.dumps(json.loads(operations.parameter(context)), indent=2)
コード例 #3
0
ファイル: options.py プロジェクト: GPPowerTrip/Client
def task_output(context):
    if len(context['args']) == 0: return "Invalid parameters"
    return json.dumps(json.loads(operations.parameter(context)), indent=2)