diff options
author | Danilo Segan <danilo@canonical.com> | 2012-07-11 12:28:06 +0200 |
---|---|---|
committer | Danilo Segan <danilo@canonical.com> | 2012-07-11 12:28:06 +0200 |
commit | 577e1a711af00e92b5b1e21c801c04e6e49cf702 (patch) | |
tree | 1382df5f7a6253ef9515758f52cb98ae6ecfc0ed /license_protected_downloads | |
parent | 078d0d550d5e258f8b0aa1766827137c3a3b61ff (diff) |
Get rid of more OpenID stuff.
Diffstat (limited to 'license_protected_downloads')
-rw-r--r-- | license_protected_downloads/tests/__init__.py | 4 | ||||
-rw-r--r-- | license_protected_downloads/views.py | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/license_protected_downloads/tests/__init__.py b/license_protected_downloads/tests/__init__.py index aa78508..04bf1eb 100644 --- a/license_protected_downloads/tests/__init__.py +++ b/license_protected_downloads/tests/__init__.py @@ -1,14 +1,10 @@ from license_protected_downloads.tests.test_models import * from license_protected_downloads.tests.test_views import * from license_protected_downloads.tests.test_buildinfo import * -#from license_protected_downloads.tests.test_click_through_license import * -from license_protected_downloads.tests.test_openid_auth import * #starts the test suite __test__= { 'LicenseTestCase': LicenseTestCase, 'ViewTests': ViewTests, 'BuildInfoTests': BuildInfoTests, - #'TestLicense': TestLicense, - 'TestOpenIDAuth': TestOpenIDAuth, } diff --git a/license_protected_downloads/views.py b/license_protected_downloads/views.py index a42a74c..37c1ef4 100644 --- a/license_protected_downloads/views.py +++ b/license_protected_downloads/views.py @@ -18,7 +18,6 @@ from models import License from django.template import RequestContext import mimetypes import glob -from openid_auth import OpenIDAuth def _hidden_file(file_name): hidden_files = ["BUILD-INFO.txt", "EULA.txt", ".htaccess", "HEADER.html"] @@ -195,16 +194,6 @@ def file_server(request, path): type = result[0] path = result[1] - if BuildInfo.build_info_exists(path): - build_info = BuildInfo(path) - launchpad_teams = build_info.get("openid-launchpad-teams") - if launchpad_teams: - launchpad_teams = launchpad_teams.split(",") - launchpad_teams = [team.strip() for team in launchpad_teams] - openid_response = OpenIDAuth.process_openid_auth(request, launchpad_teams) - if openid_response: - return openid_response - if type == "dir": # Generate a link to the parent directory (if one exists) if url != '/' and url != '': |