bfc97737b4
although I spent way too much time on the server side since deciding to add Redis as "persistence".
11 lines
222 B
Python
11 lines
222 B
Python
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
|