2012-05-18 15:18:41 +00:00
|
|
|
|
from server.people import People
|
|
|
|
|
__people__ = People()
|
|
|
|
|
|
2012-05-18 05:33:35 +00:00
|
|
|
|
|
2012-05-18 15:18:41 +00:00
|
|
|
|
person = __people__.get(int(path['id']))
|
|
|
|
|
if person:
|
|
|
|
|
response.body = {'person': person}
|
|
|
|
|
else:
|
|
|
|
|
response.code = 404
|
2012-05-18 05:33:35 +00:00
|
|
|
|
|
|
|
|
|
# vim:filetype=python
|