Example #1
0
def closePOIexec(id=None):
    response.content_type = 'text/plain; Charset=UTF-8'
    id = id or request.params.get('id', type=int)
    if not id:
        return "FAIL"
    elif osmose_common.remove_bug(id, "done") == 0:
        return "OK"
    else:
        return "FAIL"
Example #2
0
def closePOIexec(id = None):
    response.content_type = 'text/plain; Charset=UTF-8'
    id = id or request.params.get('id', type=int)
    if not id:
        return "FAIL"
    elif osmose_common.remove_bug(id, "done") == 0:
        return "OK"
    else:
        return "FAIL"
Example #3
0
def status(err_id, status):
    if osmose_common.remove_bug(err_id, status) == 0:
        abort(200, "OK")
    else:
        abort(410, "FAIL")
Example #4
0
def status(err_id, status):
    if osmose_common.remove_bug(err_id, status) == 0:
        return
    else:
        abort(410, "FAIL")