Exemplo n.º 1
0
def Review_Apply():
    rate = CTK.post.get_val("rate")
    title = CTK.post.get_val("title")
    review = CTK.post.get_val("review")
    app_id = CTK.post.get_val("application_id")

    # OWS auth
    xmlrpc = XmlRpcServer(OWS_APPS_AUTH, OWS_Login.login_user, OWS_Login.login_password)
    try:
        ok = xmlrpc.set_review(app_id, rate, title, review)
    except:
        ok = False

    return {"ret": ("error", "ok")[ok]}
Exemplo n.º 2
0
def Review_Apply():
    rate   = CTK.post.get_val('rate')
    title  = CTK.post.get_val('title')
    review = CTK.post.get_val('review')
    app_id = CTK.post.get_val('application_id')

    # OWS auth
    xmlrpc = XmlRpcServer(OWS_APPS_AUTH, OWS_Login.login_user, OWS_Login.login_password)
    try:
        ok = xmlrpc.set_review (app_id, rate,
                                CTK.util.to_unicode(title),
                                CTK.util.to_unicode(review))
    except:
        ok = False

    return {'ret': ('error','ok')[ok]}
Exemplo n.º 3
0
def Review_Apply():
    rate = CTK.post.get_val('rate')
    title = CTK.post.get_val('title')
    review = CTK.post.get_val('review')
    app_id = CTK.post.get_val('application_id')

    # OWS auth
    xmlrpc = XmlRpcServer(OWS_APPS_AUTH, OWS_Login.login_user,
                          OWS_Login.login_password)
    try:
        ok = xmlrpc.set_review(app_id, rate, CTK.util.to_unicode(title),
                               CTK.util.to_unicode(review))
    except:
        ok = False

    return {'ret': ('error', 'ok')[ok]}