def add_301(config, pattern, location, name=None): _route_and_view( config, pattern, xpartial(redirect, HTTPMovedPermanently, location), name=name)
def add_301(config, pattern, location, name=None): _route_and_view(config, pattern, xpartial(redirect, HTTPMovedPermanently, location), name=name)