Ejemplo n.º 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()
Ejemplo n.º 2
0
Archivo: main.py Proyecto: 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()
Ejemplo n.º 3
0
 def get(self):        
     self.response.out.write(libchat.chatlist(True))
Ejemplo n.º 4
0
Archivo: main.py Proyecto: nuhajat/chat
 def get(self):
     self.response.headers['Access-Control-Allow-Origin'] = '*'        
     self.response.out.write(libchat.chatlist(True))