[snowy] Add templates for OAuth consumer approval



commit 91b100901d4a59dd872253f729ac4b0b2ec71292
Author: Benoit Garret <benoit garret_gnome gadz org>
Date:   Tue Jul 21 11:06:13 2009 -0400

    Add templates for OAuth consumer approval
    
    Closes: #588527
    Signed-off-by: Brad Taylor <brad getcoded net>

 api/templates/api/mails/consumer_accepted.txt |    7 +++++++
 api/templates/api/mails/consumer_canceled.txt |    8 ++++++++
 api/templates/api/mails/consumer_pending.txt  |    8 ++++++++
 {notes => api}/templates/oauth/challenge.html |    0
 settings.py                                   |    1 +
 5 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/api/templates/api/mails/consumer_accepted.txt b/api/templates/api/mails/consumer_accepted.txt
new file mode 100644
index 0000000..ac0d054
--- /dev/null
+++ b/api/templates/api/mails/consumer_accepted.txt
@@ -0,0 +1,7 @@
+Hello {{ user }},
+
+Good news!  You can now use {{ consumer }} to access Snowy.
+
+Best regards,
+
+The Snowy Team
diff --git a/api/templates/api/mails/consumer_canceled.txt b/api/templates/api/mails/consumer_canceled.txt
new file mode 100644
index 0000000..713f56f
--- /dev/null
+++ b/api/templates/api/mails/consumer_canceled.txt
@@ -0,0 +1,8 @@
+Hello {{ user }},
+
+Access to Snowy via {{ consumer }} has been discontinued.  You can no longer
+use it to access Snowy.
+
+Best regards,
+
+The Snowy Team
diff --git a/api/templates/api/mails/consumer_pending.txt b/api/templates/api/mails/consumer_pending.txt
new file mode 100644
index 0000000..009f9a1
--- /dev/null
+++ b/api/templates/api/mails/consumer_pending.txt
@@ -0,0 +1,8 @@
+Hello {{ user }},
+
+We have received your application to access Snowy with {{ consumer }}.  We are
+currently reviewing it; you will receive an email as soon as it is accepted.
+
+Best regards,
+
+The Snowy Team
diff --git a/notes/templates/oauth/challenge.html b/api/templates/oauth/challenge.html
similarity index 100%
rename from notes/templates/oauth/challenge.html
rename to api/templates/oauth/challenge.html
diff --git a/settings.py b/settings.py
index 98875f7..e097c4a 100644
--- a/settings.py
+++ b/settings.py
@@ -119,6 +119,7 @@ INSTALLED_APPS = (
 
     # Local apps
     'notes',
+    'api',
 )
 
 # Maximum number of notes to show on the notes_detail list.



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