Created
January 23, 2011 13:48
-
-
Save kamito/792089 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def send(request): | |
message = request.form.get("message") | |
data = { | |
"data": { | |
"user": login_user.user.nickname(), | |
"updated_at": str(datetime.datetime.now()), | |
"message": message | |
} | |
} | |
client_id = users.get_current_user() | |
channel.send_message(client_id, json.dumps(data)) | |
return render_json_response(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment