changeset 34:119cf9c81d3d

example/persona.html example/persona.py
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 27 Dec 2013 13:43:43 -0800
parents 67439bcdac48
children d95ac066cb62
files example/persona.html example/persona.py
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/example/persona.html
+++ b/example/persona.html
@@ -7,18 +7,16 @@
 https://developer.mozilla.org/en-US/Persona/Quick_Setup?redirectlocale=en-US&redirectslug=Persona%2FQuick_Setup#Suppressing_Compatibility_Mode -->
 <meta http-equiv="X-UA-Compatible" content="IE=Edge">
 
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
 <script src="https://login.persona.org/include.js"></script>
 <script>
 $(document).ready(function() {
 
-alert("page loaded!");
-
 var currentUser = null;
 
 navigator.id.watch({
   loggedInUser: currentUser,
   onlogin: function(assertion) {
     // A user has logged in! Here you need to:
     // 1. Send the assertion to your backend for verification and to create a session.
     // 2. Update your UI.
--- a/example/persona.py
+++ b/example/persona.py
@@ -4,16 +4,17 @@
 test Mozilla persona auth
 
 https://login.persona.org/about
 """
 
 import optparse
 import os
 import sys
+from webob import Request, Response, exc
 from wsgiref import simple_server
 
 here = os.path.dirname(os.path.realpath(__file__))
 page = os.path.join(here, 'persona.html')
 
 class PersonaTest(object):
     def __init__(self, page=page):
         self.page = page