Example #1
0
 def post(self):
     client = oauth.GDIClient(application_key, application_secret, callback, self)
     if client.get_cookie():
         if self.request.get('message') != "":
             username = client.get_cookie_username()
             libchat.postChat(username, self.request.get('message'))
     libchat.chatlist()
Example #2
0
File: main.py Project: nuhajat/chat
 def post(self):
     user = users.get_current_user()
     if user:
         if self.request.get('message') != "":
             username = user.nickname()
             libchat.postChat(username, self.request.get('message'))
     libchat.chatlist()