Archiving a bunch of old stuff
This commit is contained in:
11
oldstuff/activeresource-aspen/www/people/%id.json
Normal file
11
oldstuff/activeresource-aspen/www/people/%id.json
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
Reference in New Issue
Block a user