I have come across two issues in web2py 1.61.4 that I think are bugs.

URL() does not honor routes.py
==============================

Using web2py 1.61.4:
     - create new application 'fubar'
     - in db.py uncomment mail, auth and crud settings except for
       'crud.settings.auth=auth'
     - in default.py uncomment user(), data() and download()

Start web2py and confirm that the following works:
     - http://127.0.0.1:8000/fubar/default/data/tables
     - http://127.0.0.1:8000/fubar/default/data/select/auth_permission

Stop web2py and create routes.py with the following content:

routes_in = (
              ('/(?P<any>.*)', '/fubar/\g<any>'),
              )

routes_out = (
               ('/fubar/(?P<any>.*)', '/\g<any>'),
               )

(taken from web2py book with 'init' replaced by 'fubar')

Start web2py and goto (notice no 'fubar' in url):
     - http://127.0.0.1:8000/default/data/tables

This displays the auth table name as a set of links. However these links
still have 'fubar' in their URL. And because of that they don't work
anymore (Error: Invalid controller).

It seems that URL() doesn't honor routes.py!

/$c/$f syntax doesn't work
==========================

Stop web2py and replace content of routes.py with:

routes_in = (
              ('/$c/$f', '/fubar/$c/$f'),
              )

routes_out = [(x, y) for (y, x) in routes_in]

(again taken from web2py book with 'init' replaced by 'fubar')

This time http://127.0.0.1:8000/default/data/tables does not even work!
(Error: Invalid request)

-- 
Guido Kollerie




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to