[web2py] routes.py SUCKS

2010-01-29 Thread Tamas
Hello,

I would like to tackle the simple task of running web2py on a folder
of the website, say

http://example.org/w2p/

So that an application will be like http://example.org/w2p/example/default/index

Setting up the WSGI handler is easy, however routes.py gives me a hard
time. I tried a bunch of versions, but none seemed to work.

Can someone help out? This should be really easy, but it isn't!

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@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.



Re: [web2py] routes.py SUCKS

2010-01-29 Thread Jonathan Lundell
On Jan 29, 2010, at 9:17 AM, Tamas wrote:

 I would like to tackle the simple task of running web2py on a folder
 of the website, say
 
 http://example.org/w2p/
 
 So that an application will be like 
 http://example.org/w2p/example/default/index
 
 Setting up the WSGI handler is easy, however routes.py gives me a hard
 time. I tried a bunch of versions, but none seemed to work.
 
 Can someone help out? This should be really easy, but it isn't!

One thing that might help: I added a doctest section to routes.example.py. The 
intention is that you can use it to see what your modified routes.py is 
actually doing (you need to edit the doctest accordingly, of course).

-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@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.



Re: [web2py] routes.py SUCKS

2010-01-29 Thread Thadeus Burgess
routes_in

('^/admin(?Pany.*)', '/admin\gany'),
('^/appadmin(?Pany.*)', '/init/appadmin\gany'),
('^/(?Pany.*)', '/init/default/\gany'),

routes_out

('/init/appadmin(?Pany.*)', '/appadmin\gany'),
('/init/default(?Pany.*)', '/default\gany'),


-Thadeus





On Fri, Jan 29, 2010 at 11:24 AM, Jonathan Lundell jlund...@pobox.com wrote:

 Setting up the WSGI handler is easy, however routes.py gives me a hard
 time. I tried a bunch of versions, but none seemed to work.

 Can someone help out? This should be really easy, but it isn't!

 One thing that might help: I added a doctest section to routes.example.py. 
 The intention is that you can use it to see what your modified routes.py is 
 actually doing (you need to edit the doctest accordingly, of course).

 --
 You received this message because you are subscribed to the Google Groups 
 web2py-users group.
 To post to this group, send email to web...@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.



-- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To post to this group, send email to web...@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.