mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 15:50:59 +00:00
28cb48c72a
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
16 lines
428 B
JSON
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)}
|