Files
Chad Whitacre 28cb48c72a Big changeover from id to username; #287
I sort of did this one with the blast shield down. I haven't even run
the tests yet. The sorts of things I changed:

 - SQL {elsewhere,exchanges}.participant_id => .participant
 - SQL participants.id => .username
 - ORM {user,participant,self}.id => .username
2013-04-05 15:48:59 -04:00

16 lines
428 B
JSON

from aspen import Response
from gittip import db
from gittip.utils import wrap
# ========================================================================== ^L
if user.ANON:
raise Response(404)
request.allow("POST")
statement = request.body["statement"]
db.execute( "UPDATE participants SET statement=%s WHERE username=%s"
, (statement, user.username)
)
response.body = {"statement": wrap(statement)}