[snowy] Use piston's authorize_token view instead



commit 7a8b3539121bcaa93573c41d45eee724c495e949
Author: Brad Taylor <brad getcoded net>
Date:   Tue Jul 21 15:08:57 2009 -0400

    Use piston's authorize_token view instead
    
    We ended up mostly copy and pasting all of Piston's authorize_token view into
    ours simply to move it into /notes/templates/notes/.  It really should be in
    /api/templates/piston/ instead.

 .../templates/piston/authorize_token.html          |    0
 notes/views.py                                     |    8 --------
 2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/notes/templates/notes/note_authorize_token.html b/api/templates/piston/authorize_token.html
similarity index 100%
rename from notes/templates/notes/note_authorize_token.html
rename to api/templates/piston/authorize_token.html
diff --git a/notes/views.py b/notes/views.py
index b023c97..13a8013 100644
--- a/notes/views.py
+++ b/notes/views.py
@@ -78,11 +78,3 @@ def note_detail(request, username, note_id, slug='',
                                'note': note, 'body': body,
                                'request': request, 'author': author},
                               context_instance=RequestContext(request))
-    
-def note_oauth_auth_view(request, token, callback, params):
-    form = piston_forms.OAuthAuthenticationForm(initial={
-        'oauth_token': token.key,
-        'oauth_callback': callback,
-        })
-    return render_to_response('notes/note_authorize_token.html',
-            { 'form': form }, RequestContext(request))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]