Source code for wheezy.routing.route
""" ``route`` module.
"""
[docs]class Route(object):
"""Route abstract contract."""
exact_matches = None
[docs] def match(self, path):
"""if the ``path`` matches, return the end of
substring matched and kwargs. Otherwise
return ``(-1, None)``.
"""
raise NotImplementedError()
[docs] def path(self, values=None):
"""Build the path for given route."""
raise NotImplementedError()