def _route_decorator_maker(path, allow_get, allow_post):
    def _decorator(func):
        @functools.wraps(func)
        def _wrapper(*args, **kw):
            _log('call route.wrapper: %s, %s' % (str(args), str(kw)))
            return func(*args, **kw)
        _wrapper.__web_route__ = path
        _wrapper.__web_get__ = allow_get
        _wrapper.__web_post__ = allow_post
        return _wrapper
    return _decorator
Add-ons details page dispatcher.
dataset/ETHPy150Open michaelliao/transwarp/transwarp/web.py/_route_decorator_maker--crossover with--dataset/ETHPy150Open mozilla/addons-server/src/olympia/addons/views.py/addon_detail