~mvo/software-center/trivial-move-gui-helpers

« back to all changes in this revision

Viewing changes to softwarecenter/enums.py

  • Committer: Gary Lasker
  • Date: 2012-01-18 22:09:15 UTC
  • mfrom: (2674.1.1 rename_host_var_918270)
  • Revision ID: gary.lasker@canonical.com-20120118220915-4geelitaxcb7dzu2
merged lp:~zematynnad/software-center/rename_host_var_918270, many thanks Danny

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
SOFTWARE_CENTER_SSO_DESCRIPTION = _(
28
28
    "To reinstall previous purchases, sign in to the "
29
29
    "Ubuntu Single Sign-On account you used to pay for them.")
30
 
        
 
30
 
31
31
 
32
32
# buy-something base url
33
33
#BUY_SOMETHING_HOST = "http://localhost:8000/"
34
 
BUY_SOMETHING_HOST = os.environ.get("SOFTWARE_CENTER_BUY_HOST") or "https://software-center.ubuntu.com"
35
 
BUY_SOMETHING_HOST_ANONYMOUS = os.environ.get("SOFTWARE_CENTER_BUY_HOST") or "http://software-center.ubuntu.com"
 
34
BUY_SOMETHING_HOST = os.environ.get("SOFTWARE_CENTER_AGENT_HOST") or os.environ.get("SOFTWARE_CENTER_BUY_HOST") or "https://software-center.ubuntu.com"
 
35
BUY_SOMETHING_HOST_ANONYMOUS = os.environ.get("SOFTWARE_CENTER_AGENT_HOST") or os.environ.get("SOFTWARE_CENTER_BUY_HOST") or "http://software-center.ubuntu.com"
36
36
 
37
37
# recommender
38
38
RECOMMENDER_HOST = os.environ.get("SOFTWARE_CENTER_RECOMMENDER_HOST") or "https://recommender.software-center.ubuntu.com"
43
43
SSO_LOGIN_HOST = UBUNTU_SSO_SERVICE
44
44
 
45
45
 
46
 
# version of the database, every time something gets added (like 
 
46
# version of the database, every time something gets added (like
47
47
# terms for mime-type) increase this (but keep as a string!)
48
48
DB_SCHEMA_VERSION = "6"
49
49
 
175
175
    PURCHASED_BUT_REPO_MUST_BE_ENABLED,
176
176
    ERROR,
177
177
    # the package is not found in the DB or cache
178
 
    NOT_FOUND, 
 
178
    NOT_FOUND,
179
179
    # this *needs* to be last (for test_appdetails.py) and means
180
180
    # something went wrong and we don't have a state for this PKG
181
181
    UNKNOWN,
218
218
TOP_RATED_CAROUSEL_LIMIT = 12
219
219
 
220
220
from .version import VERSION, DISTRO, RELEASE, CODENAME
221
 
USER_AGENT="Software Center/%s (N;) %s/%s (%s)" % (VERSION, 
222
 
                                                   DISTRO, 
 
221
USER_AGENT="Software Center/%s (N;) %s/%s (%s)" % (VERSION,
 
222
                                                   DISTRO,
223
223
                                                   RELEASE,
224
224
                                                   CODENAME)
225
225