Skip to content

Instantly share code, notes, and snippets.

@tony-landis
Created June 2, 2009 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tony-landis/122671 to your computer and use it in GitHub Desktop.
Save tony-landis/122671 to your computer and use it in GitHub Desktop.
import logging
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
from pylons_openid.lib.base import BaseController, render
log = logging.getLogger(__name__)
from pylons_openid.lib.auth import *
class RootController(BaseController):
@require_login
def index(self):
c.user = session
return render('index.html')
@require_customer
def customer(self):
c.user = session
return render('index.html')
@require_admin
def admin(self):
c.user = session
return render('index.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment