News for hackers. Stuff that matters.
Re:Understanding Python Decorators by krosaen on Sunday August 07, 2011 @11:09PM (#2858595)
a nice use case for web apps: making sure the current user is logged in, and / or has permission to access a specific resource. removes a ton of boilerplate for redirecting to the login page or returning a 403. tornado makes use of this with the authenticated decorator.

There are no comments on this comment yet.