Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(0)  |  Derive(8)  |  Import(2)

src/s/u/suas-HEAD/suas/auth_handlers.py   suas(Download)
from google.appengine.ext.webapp import template
 
from session import RequestHandler
from users import User, UserSignup, salt_n_hash, signup_id
 
class Signup(RequestHandler):
	def get(self):
		ctx = template.Context({"session": self.session})
		self.response.out.write(SIGNUP_VIEW.render(ctx))
 
class ConfirmSignup(RequestHandler):
	def get(self):
		id = self.request.get('id')
		signup = UserSignup.get_by_key_name(id)
		if not signup:
class Login(RequestHandler):
	"""Handle /login?redirect=%s request. You will need to define your GET method handler."""
	def get(self):
		ctx = template.Context({"session": self.session})
		self.response.out.write(LOGIN_VIEW.render(ctx))
class Logout(RequestHandler):
	def get(self):
		if not self.session.user:
			self.error(404)
			return

src/s/u/suas-HEAD/suas/test/test_session.py   suas(Download)
 
from signedcookie import SignedCookie, SIG_LEN
from session import RequestHandler, SECRET_KEY, SESSION_TTL, SID_TTL
 
# mock
class User:
	def __init__(self, nickname):
		self.nickname = nickname
 
class Login(RequestHandler):
class Regen(RequestHandler):
	def post(self):
		self.session.regen()
 
class Touch(RequestHandler):
        def get(self):
                pass
 
class Logout(RequestHandler):