Create a gist now

Instantly share code, notes, and snippets.

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