d64d39fa58649740abcac142e30081bfddfd57cf
3 from pylons
import config
, request
, response
, session
, tmpl_context
as c
, url
4 from pylons
.controllers
.util
import abort
, redirect_to
5 from routes
import request_config
6 from sqlalchemy
.orm
.exc
import NoResultFound
8 from spline
import model
9 from spline
.model
import meta
10 from spline
.lib
import helpers
as h
11 from spline
.lib
.base
import BaseController
, render
13 log
= logging
.getLogger(__name__
)
15 class UsersController(BaseController
):
18 # Return a rendered template
19 # return render('/template.mako')
20 # or, Return a response
23 def view(self
, id, name
=None):
26 URL is /users/id:name, where 'name' only exists for readability and is
27 entirely optional and ignored.
30 c
.page_user
= meta
.Session
.query(model
.User
).get(id)
34 return render('/users/view.mako')