Guest User

Untitled

a guest
Feb 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ## Codigo
  2.  
  3. class Config(webapp.RequestHandler):
  4. def get(self):
  5. session = Session()
  6. logged = session.checkLogin('self')
  7.  
  8. class Session():
  9. def checkLogin(app):
  10. print app
  11.  
  12. ## Saida:
  13.  
  14. Traceback (most recent call last):
  15. File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__init__.py", line 499, in __call__
  16. handler.get(*groups)
  17. File "/Users/marcogomes/Sites/lab/adbird/main.py", line 40, in get
  18. logged = session.checkLogin('self')
  19. TypeError: checkLogin() takes exactly 1 argument (2 given)
Add Comment
Please, Sign In to add comment