class documentation

This class wraps a route callback along with route specific metadata and configuration and applies Plugins on demand. It is also responsible for turing an URL path rule into a regular expression usable by the Router.

Method __call__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method all_plugins Yield all Plugins affecting this route.
Method get_callback_args Return a list of argument names the callback (most likely) accepts as keyword arguments. If the callback is a decorated function, try to recover the original function before inspection.
Method get_config Lookup a config field and return its value, first checking the route.config, then route.app.config.
Method get_undecorated_callback Return the callback. If the callback is a decorated function, try to recover the original function.
Method prepare Do all on-demand work immediately (useful for debugging).
Method reset Forget any cached values. The next time :attr:`call` is accessed, all plugins are re-applied.
Instance Variable app Undocumented
Instance Variable callback Undocumented
Instance Variable config Undocumented
Instance Variable method Undocumented
Instance Variable name Undocumented
Instance Variable plugins Undocumented
Instance Variable rule Undocumented
Instance Variable skiplist Undocumented
Property call The route callback with all plugins applied. This property is created on demand and then cached to speed up subsequent requests.
Method _make_callback Undocumented
Property _context Undocumented
def __call__(self, *a, **ka): (source)

Undocumented

def __init__(self, app, rule, method, callback, name=None, plugins=None, skiplist=None, **config): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def all_plugins(self): (source)

Yield all Plugins affecting this route.

def get_callback_args(self): (source)

Return a list of argument names the callback (most likely) accepts as keyword arguments. If the callback is a decorated function, try to recover the original function before inspection.

def get_config(self, key, default=None): (source)

Lookup a config field and return its value, first checking the route.config, then route.app.config.

def get_undecorated_callback(self): (source)

Return the callback. If the callback is a decorated function, try to recover the original function.

def prepare(self): (source)

Do all on-demand work immediately (useful for debugging).

def reset(self): (source)

Forget any cached values. The next time :attr:`call` is accessed, all plugins are re-applied.

Undocumented

callback = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

skiplist = (source)

Undocumented

The route callback with all plugins applied. This property is created on demand and then cached to speed up subsequent requests.

def _make_callback(self): (source)

Undocumented

Undocumented