Skip to content

Instantly share code, notes, and snippets.

@kamito
Created January 23, 2011 13:48
Show Gist options
  • Save kamito/792089 to your computer and use it in GitHub Desktop.
Save kamito/792089 to your computer and use it in GitHub Desktop.
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