Skip to content

Instantly share code, notes, and snippets.

@NamPNQ
Created March 30, 2014 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NamPNQ/9878644 to your computer and use it in GitHub Desktop.
Save NamPNQ/9878644 to your computer and use it in GitHub Desktop.
Sử dụng teacher required
class TeacherHandler(BaseHandler):
@user_required
@teacher_required
def get(self):
self.response.write('Only teacher can access this page')
RedirectRoute('/teacher', handlers.TeacherHandler, name='visualization', strict_slash=True),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment