box-o-sand/oldstuff/activeresource-aspen/www/people/%id.json

12 lines
202 B
JSON
Raw Normal View History

from server.people import People
__people__ = People()
person = __people__.get(int(path['id']))
if person:
response.body = {'person': person}
else:
response.code = 404
# vim:filetype=python