()
return jsonize({"success": True, "taskid": taskid})
Create new task ID
Create new task ID
Create new task ID
def task_new():
    """
    Create new task ID
    """
    taskid = hexencode(os.urandom(8))
    remote_addr = request.remote_addr

    DataStore.tasks[taskid] = Task(taskid, remote_addr)

    logger.debug("Created new task: '%s'" % taskid)
    return jsonize({"success": True, "taskid": taskid})
def task_new ( ) : taskid = hexencode ( os . urandom ( 8 ) ) remote_addr = request . remote_addr DataStore . tasks [ taskid ] = Task ( taskid , remote_addr ) logger . debug ( "Created new task: '%s'" % taskid ) return jsonize ( { "success" : True , "taskid" : taskid } )