~gary-lasker/software-center/christhehorton-reviews-crash-fix-lp912855

« back to all changes in this revision

Viewing changes to softwarecenter/distro/Ubuntu.py

point to http://reviews.staging.ubuntu.com/reviews/api/1.0 by default now, use https in the submit_reviews.py code

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    PURCHASE_APP_URL = BUY_SOMETHING_HOST+"/subscriptions/%s/ubuntu/maverick/+new/?%s"
42
42
 
43
43
    # reviews
44
 
    REVIEWS_SERVER = os.environ.get("SOFTWARE_CENTER_REVIEWS_HOST") or "http://127.0.0.1:8000"
 
44
    REVIEWS_SERVER = os.environ.get("SOFTWARE_CENTER_REVIEWS_HOST") or "http://reviews.staging.ubuntu.com/reviews/api/1.0"
45
45
    REVIEWS_SERVER_SSL = REVIEWS_SERVER.replace("http://", "https://")
46
46
    REVIEWS_URL = urllib.basejoin(REVIEWS_SERVER, "/reviews/api/1.0/%(language)s/%(origin)s/%(distroseries)s/%(pkgname)s%(appname)s/")
47
47