Merge lp:~canonical-isd-hackers/canonical-identity-provider/lock-view into lp:canonical-identity-provider/release

Proposed by David Owen
Status: Merged
Merged at revision: 258
Proposed branch: lp:~canonical-isd-hackers/canonical-identity-provider/lock-view
Merge into: lp:canonical-identity-provider/release
Prerequisite: lp:~canonical-isd-hackers/canonical-identity-provider/flakes
Diff against target: 34 lines (+0/-13)
2 files modified
identityprovider/urls.py (+0/-1)
identityprovider/views/testing.py (+0/-12)
To merge this branch: bzr merge lp:~canonical-isd-hackers/canonical-identity-provider/lock-view
Reviewer Review Type Date Requested Status
Canonical ISD hackers Pending
Review via email: mp+86459@code.launchpad.net

Commit message

Removed obsolete lock view

To post a comment you must log in.
Revision history for this message
ISD Branch Mangler (isd-branches-mangler) wrote :

More than one proposal found for merge of lp:~canonical-isd-hackers/canonical-identity-provider/flakes into lp:canonical-identity-provider, which is not Superseded.

Revision history for this message
ISD Branch Mangler (isd-branches-mangler) wrote :

More than one proposal found for merge of lp:~canonical-isd-hackers/canonical-identity-provider/flakes into lp:canonical-identity-provider, which is not Superseded.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'identityprovider/urls.py'
2--- identityprovider/urls.py 2011-12-16 16:02:09 +0000
3+++ identityprovider/urls.py 2011-12-21 17:00:31 +0000
4@@ -104,7 +104,6 @@
5 (r'^~(?P<username>[A-Za-z0-9\-_]+)(/(?P<version>[1|2]))?$',
6 'delegate_profile'),
7 (r'^error$', 'error'),
8- (r'^lock-accounts$', 'lock_accounts'),
9 )
10 urlpatterns += patterns('',
11 (r'(favicon.ico)', 'django.views.static.serve',
12
13=== modified file 'identityprovider/views/testing.py'
14--- identityprovider/views/testing.py 2011-12-15 20:51:19 +0000
15+++ identityprovider/views/testing.py 2011-12-21 17:00:31 +0000
16@@ -63,18 +63,6 @@
17 """ Raise an internal server error """
18 raise FloatingPointError("This error is a test. Please ignore.")
19
20-def lock_accounts(request):
21- from django.db import connection
22- if request.method == 'POST':
23- cursor = connection.cursor()
24- cursor.execute('SET statement_timeout TO 0')
25- cursor.execute('SELECT * FROM account FOR UPDATE')
26- cursor.execute('SELECT pg_sleep(30)')
27- return HttpResponse('''
28-<form method="post">
29- <input type="submit" value="Lock">
30-</form>
31-''')
32
33 # This gives mock & patch a nice easy location to patch a wait into
34 # the handler.