Пример #1
0
 def get(self):
     client = oauth.GDIClient(application_key, application_secret, callback, self)
     username = client.get_cookie_username()
     libuser.logout(username)
     libchat.postSystemChat(username + " left the chat (log out via GDI Account)")
     client.expire_cookie()
     return self.redirect("/")
Пример #2
0
 def get(self):
     args = dict(current_user=self.current_user,
             facebook_app_id=FACEBOOK_APP_ID)
     #client = oauth.GDIClient(application_key, application_secret, callback, self)
     #username = client.get_cookie_username()
     username = args['current_user'].name
     libuser.logout(username)
     libchat.postSystemChat(username + " left the chat")
     #client.expire_cookie()
     return self.redirect("/")