~elopio/ubuntuone-testing/fix-1046476

« back to all changes in this revision

Viewing changes to ubuntuone/web/tests/sst/shared/actions/files.py

  • Committer: Tarmac
  • Author(s): leo.arias at canonical
  • Date: 2012-08-28 04:11:21 UTC
  • mfrom: (114.2.13 configglue)
  • Revision ID: tarmac-20120828041121-5u9k8u456b8ey1e0
Added configglue configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from sst.actions import *
20
20
from sst.actions import _get_elem
21
21
from loading import *
22
 
from config import *
 
22
from config import environment
23
23
import urlparse
24
24
 
25
25
 
229
229
    identifier -- The identifier of the file.
230
230
 
231
231
    """
232
 
    files_url = None
233
 
    if ENVIRONMENT == 'staging':
234
 
        files_url = 'https://files.staging.one.ubuntu.com/'
235
 
    elif ENVIRONMENT == 'edge':
236
 
        files_url = 'https://files.edge.one.ubuntu.com/'
237
 
    elif ENVIRONMENT == 'production':
238
 
        files_url = 'https://files.one.ubuntu.com/'
 
232
    files_url = environment.get_environment().files_url
239
233
    file_url = files_url + str(identifier[3:])
240
234
    return get_element(css_class='download-button', href=file_url)
241
235