# $Id$ # $URL$ def main(headers={}, arguments={}, pipe=None, *args, **kwargs): expr = re.compile('^/m/?$') path = kwargs['RequestURI'] if expr.match(path): yield """FIXME: Redirect /m to /m/search/""" #kwargs['RequestURI']="/m/search" #kwargs['path']="/m/search" #handleRequest(**mangled) else: yield pipe