-from pyramid.response import Response
-from pyramid.httpexceptions import HTTPForbidden, HTTPFound
-from pyramid.security import remember, forget
+from pyramid.httpexceptions import HTTPFound
+from pyramid.security import remember
from pyramid.session import check_csrf_token
from pyramid_persona.views import verify_login
-from xonstat.models import *
+from xonstat.models import DBSession, Player
+
def forbidden(request):
'''A simple forbidden view. Does nothing more than set the status and then
player_email = DBSession.query(Player).\
filter(Player.email_addr == persona_email).one()
- log.debug("Verified email address: %s" % persona_email)
- log.debug("Corresponding player is %s" % player_email)
+ #log.debug("Verified email address: %s" % persona_email)
+ #log.debug("Corresponding player is %s" % player_email)
if player_email is not None:
# Add the headers required to remember the user to the response