pulling up the activeresource stuff again mostly to play with Aspen + more permanently removing the git-web-ui and ruby soap stuff
This commit is contained in:
10
activeresource-aspen/www/families/%surname.json
Normal file
10
activeresource-aspen/www/families/%surname.json
Normal file
@@ -0,0 +1,10 @@
|
||||
from server.families import Families
|
||||
__families__ = Families()
|
||||
|
||||
family = __families__.get_by_surname(path['surname'])
|
||||
if family:
|
||||
response.body = {'family': family}
|
||||
else:
|
||||
response.code = 404
|
||||
|
||||
# vim:filetype=python
|
Reference in New Issue
Block a user