[snowy] Reword authorize_token.html, updates for piston



commit 5448dae98917007244e8b2e4001c080f6d2c7abc
Author: Brad Taylor <brad getcoded net>
Date:   Tue Jul 21 16:27:07 2009 -0400

    Reword authorize_token.html, updates for piston

 api/templates/piston/authorize_token.html |   17 +++++++++++------
 settings.py                               |    8 ++++----
 urls.py                                   |    3 ++-
 3 files changed, 17 insertions(+), 11 deletions(-)
---
diff --git a/api/templates/piston/authorize_token.html b/api/templates/piston/authorize_token.html
index 49c5768..80df9e4 100644
--- a/api/templates/piston/authorize_token.html
+++ b/api/templates/piston/authorize_token.html
@@ -1,13 +1,18 @@
 {% extends 'notes/base.html' %}
 
-{% block title %}Notes | {{ block.super }}{% endblock %}
+{% block title %}Allow Access? | {{ block.super }}{% endblock %}
 {% block content %}
-<p>
+        <h1>Allow Access?</h1>
+        <p>Permitting this application to access {{ PROJECT_NAME }} will allow
+        it to view, edit and delete your information on {{ PROJECT_NAME }}.  Access can
+        be revoked at any time on the Preferences page.</p>
         <form action="{% url piston.authentication.oauth_user_auth %}" method="POST">
-            <table>
-            {{ form.as_table }}
-            </table>
-            <input type="submit">
+            {{ form.oauth_token }}
+            {{ form.oauth_callback }}
+            {{ form.csrf_signature }}
+            <input type="hidden" name="authorize_access" value="on">
+            <br />
+            <input type="submit" value="Allow"> or <a href="{% url snowy_index %}">cancel</a>
         </form>
 {% endblock %}
 
diff --git a/settings.py b/settings.py
index e097c4a..5747dbd 100644
--- a/settings.py
+++ b/settings.py
@@ -102,6 +102,10 @@ import sys
 sys.path.append(EXTERNAL_APPS_PATH)
 
 INSTALLED_APPS = (
+    # Local apps
+    'api',
+    'notes',
+
     # System apps
     'django.contrib.admin',
     'django.contrib.auth',
@@ -116,10 +120,6 @@ INSTALLED_APPS = (
     'gravatar',
     'autoslug',
     'piston',
-
-    # Local apps
-    'notes',
-    'api',
 )
 
 # Maximum number of notes to show on the notes_detail list.
diff --git a/urls.py b/urls.py
index c99d6dd..5990003 100644
--- a/urls.py
+++ b/urls.py
@@ -30,7 +30,8 @@ from django.contrib import admin
 admin.autodiscover()
 
 urlpatterns = patterns('',
-    (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'}),
+    url(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'index.html'},
+        name='snowy_index'),
 
     (r'^(?P<username>\w+)/notes/', include('snowy.notes.urls')),
 



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