This works for me:
def peekfile(path,file):
return
A(file.replace('\\','/'),_href=URL(r=request,f='peek/%s/%s/%s' % (app,
path, file.replace('\\','/'))))
in [line 5] \web2py\applications\admin\views\default\design.html
Acoording to byteofpython book, you have to use an escape sequence
forusing a" double quote itself" in a "double quoted string" (not with
single quote strings), but maybe your code is a matter of linux paths,
or something...
Do I really corrected my first bug in open source community?? :-O ,
likely not. :-D, but it works for me...
alex F
El 22/07/2009 20:41, Alex Fanjul escribió:
> Maybe something with this?
> def peekfile(path,file):
> return
> A(file.replace('\\\\','/'),_href=URL(r=request,f='peek/%s/%s/%s' %
> (app, path, file)))
>
> El 22/07/2009 20:31, Alex Fanjul escribió:
>> Hello,
>> when I tray to view or edit an html code clicking in the name (ie:
>> default/index.html [edit | htmledit | delete]) from the admin page,
>> the system complains saying "Not Found URL" because the URL has "\"
>> character at the end
>> (http://localhost/admin/default/peek/welcome/views/default\index.html),
>> if I turn to "/" it works.
>> My enviroment: Windows + Apache + mod_wsgi + web2py 1.65.5
>>
>> Withn cherrypy (web2py standalone) it works right.
>>
>> Maybe the mod wsgi handler? any suggestion? thanks
>> alex f
>>
>>
>
--
Alejandro Fanjul Fdez.
[email protected]
www.mhproject.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---