def index(self): c.section = 'register' c.breadcrumbs = [ h.link_to('Home', url('/')), 'Create Account', ] c.r = request.params.get('r') return render('/create/index.mako')
def index(self): c.section = "Home" c.breadcrumbs = [ h.link_to('Home', url('.')), 'I Forgot My Password', ] c.r = request.params.get('r') return render('/forgot/index.mako')
def index(self): c.section = 'Account' c.breadcrumbs = [ h.link_to('Home', url('/')), h.link_to('Account', url('/account')), "Generate ID", ] return render('/generate/index.mako')
def edit(self): c.section = "account" c.breadcrumbs = [ h.link_to("Home", url("/")), h.link_to("Account", url(controller="account", action="index")), "Edit", ] return htmlfill.render(render("/account/edit.mako"), dict(email=c.user.email), text_as_default=True)
def show(self, id): c.section = 'Account' c.breadcrumbs = [ h.link_to('Home', url('/')), h.link_to('Account', url('/account')), "Generate ID", ] token = meta.Session.query(Token).get(id) if not token: return render('/generate/show_no_token.mako') c.service_url = token.service.url c.auth_url = url( controller='svc', action='auth', id=token.id, qualified=True) c.password = base64.urlsafe_b64encode(token.password) return render('/generate/show.mako')
def password(self): c.section = 'home' c.breadcrumbs = [h.link_to('Home', url('/')), 'Passwords'] return render('/main/password.mako')
def test(self): c.section = 'test' c.breadcrumbs = [h.link_to('Home', url('/')), 'Test'] return render('/main/test.mako')
def develop(self): c.section = 'develop' c.breadcrumbs = [h.link_to('Home', url('/')), 'Develop'] return render('/main/develop.mako')
def index(self): c.section = 'home' c.breadcrumbs = ['Home'] return render('/main/index.mako')
def index(self): c.section = "account" c.breadcrumbs = [h.link_to("Home", url("/")), "Account"] c.tokens = meta.Session.query(Token).filter(Token.user_id == c.user.id) return render("/account/index.mako")
def index(self): c.r = request.params.get('r') return render('/login/index.mako')