applications/welcome/views/default/index.html:
<a href='/admin'>{{=T("click here for the administrative interface")}}
<br />
<a href='/examples'>{{=T("click here for online examples")}}
is definitly a bug. But
applications/welcome/views/default/users.html or
welcome/views/web2py_ajax.html
look ok on the other hand, but do not seem to work - as if routes.py
would be ignored:
The line in web2py_ajax.html goes:
<script src="{{=URL(r=request,c='static',f='jquery.js')}}" type="text/
javascript"></script>
but becomes
<script src="/welcome/static/jquery.js" type="text/javascript"></
script>
instead of
<script src="/prefix/welcome/static/jquery.js" type="text/
javascript"></script>
(using the routes.py from previous post).
BTW - I just found a post "tools.py does not use rewrite.py wrapped URL
()"
Could this be the same problem ?
On 17 Mai, 18:00, mdipierro <[email protected]> wrote:
> On May 17, 2:39 am, Bernd das Brot <[email protected]> wrote:
>
> > Hello,
> > I checked web2py Version 1.62 rc4 (2009-05-15 15:41:03) for my issue
>
> > "web2py alongside other applications,
> > mod_proxy"http://groups.google.at/group/web2py/browse_thread/thread/c49124199d8...
>
> > to find it fixed (big thank you !) EXCEPT in the (new and cool)
> > "welcome" application. It has lots of absolute URLs like href="/admin"
> > in it -
>
> I do not see this anywhere. Can you please point me to it?
>
> > so if you use "routes.py" with a prefix:
>
> > routes_in = (('/prefix/(?P<a>.*)','/\g<a>'),)
> > routes_out = (('/(?P<a>.*)','/prefix/\g<a>'),)
>
> > it completely breaks (it does not even find it' s Stylesheets...), the
> > "admin"-Application looks fine, for example.
>
> > The safest way to test it is a proxy environment, if you directly
> > connect to "localhost:8000/prefix/" you have to look carefully for
> > URLs that
> > do not start with /prefix (and so break).
>
> > On 15 Mai, 22:43, mdipierro <[email protected]> wrote:
>
> > > BTW... you can test the latest at
>
> > >http://www.web2py.com/examples/static/1.62rc2/web2py_src.ziphttp://ww...
>
> > > On May 15, 3:40 pm, mdipierro <[email protected]> wrote:
>
> > > > Except for the web2py-as-windows as service issue, is there anything
> > > > else I fogot to fix?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---