Here is the entire "routes.py" I have: routers = dict( BASE=dict( default_application='miops', ), )
logging = 'debug' if __name__ == '__main__': import doctest doctest.testmod() I am testing the web2py (Version 2.6.0-development+timestamp.2013.08.15.10.05.27) instance under Apache2 using mod_python and "modpythonhandler" came with web2py. I have 2 simple apps: midash and miops. I intend to require user authentication for accessing "midash" and not "miops". In "miops/controllers/default.py" I have only an "index()" function, while in "midash/controllers/default.py" I do have a "user()" function. A path of "midash/default/user/login?_next=/midash" gives me an "invalid request" error. I put some test cases in "routes.py", they seem to work fine: ''' >>> import sys >>> import os >>> path = os.path.dirname(os.path.abspath(__file__)) >>> sys.path = [path] + [p for p in sys.path if not p == path] >>> os.chdir(path) >>> import gluon.main >>> from gluon.rewrite import load, filter_url, filter_err, get_effective_router >>> load(routes=os.path.basename(__file__)) ... >>> filter_url('http://domain.com/') '/miops/default/index' >>> filter_url('http://domain.com/miops/apps?app=abc') '/miops/apps/index ?app=abc' >>> filter_url('http://domain.com/midash/default/user/login?_next=/midash') "/midash/default/user ['login'] ?_next=/midash" ''' Thank you very much for your help. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.