Module Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If UnaryOpNot AttributeLoad NameLoad attr body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn Str NameLoad body AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Return Raise Call NameLoad Num orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Return Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A urllib tornado.web HTTPError role_required N/A N/A role N/A N/A wrap N/A N/A view_func N/A N/A has_role N/A N/A self N/A args kwargs N/A N/A N/A N/A self current_user N/A N/A N/A N/A N/A self request method GET N/A N/A url N/A N/A self get_login_url N/A N/A ? url N/A N/A url N/A ? N/A N/A urllib urlencode N/A dict next N/A N/A self request uri N/A N/A N/A self redirect url N/A N/A N/A HTTPError 403 N/A N/A N/A N/A N/A N/A self current_user has_role role N/A N/A N/A N/A self flash error You do not have permissions to access the requested url N/A N/A N/A self redirect / N/A N/A N/A view_func self args kwargs N/A N/A has_role N/A N/A wrap N/A route N/A object N/A N/A 
    taken from http://gist.github.com/616347

    decorates RequestHandlers and builds up a list of routables handlers

    Tech Notes (or "What the *@# is really happening here?")
    --------------------------------------------------------

    Everytime @route('...') is called, we instantiate a new route object which
    saves off the passed in URI.  Then, since it's a decorator, the function is
    passed to the route.__call__ method as an argument.  We save a reference to
    that handler with our uri in our class level routes list then return that
    class to be instantiated as normal.

    Later, we can call the classmethod route.get_routes to return that list of
    tuples which can be handed directly to the tornado.web.Application
    instantiation.

    Example
    -------

    @route('/some/path')
    class SomeRequestHandler(RequestHandler):
        pass

    my_routes = route.get_routes()
     N/A _routes N/A __init__ N/A N/A self uri N/A N/A N/A N/A self _uri uri N/A __call__ N/A N/A self _handler N/A N/A N/A gets called when we class decorate N/A N/A N/A N/A self _routes append N/A N/A self _uri _handler N/A _handler N/A get_routes N/A N/A self N/A N/A N/A N/A self _routes N/A classmethod N/A