List,
Hi, I'm new to webpy and also new to the list, so sorry if I'm
doing a stupid question ;)
I'm porting a PHP application to Python using webpy. The PHP
application has a decent size, and my idea is to perform a "line to
line" port. One of the reasons I chose webpy was the ability to run
its own server, that would allow me to run this python application
without the need of Apache+mod_python.
After porting the index, and trying it with "python index.py" ,
I'm seeing that the HTML code that is generated (which is the same as
the PHP web application) is pointing to the correct locations for the
static files like ".js" and ".css", but the embedded webpy server
isn't serving those files.
Quick google search, and I found that static files should all be
located in the "static" directory. My first thought was... these guys
have to be kidding, right? Is there a real reason for this? Why not
using the classic method of "running" the files with particular
extensions like ".py", and just reading the rest of the files?
If I move all the static files, to the static directory, it would
only be needed for running in the embedded HTTP daemon, because Apache
wouldn't send the "run this" request to webpy for those files, right?
I think that the embedded HTTP daemon should mimic Apache as much as
possible.
Am I the only one that finds this particularly annoying?
I know that I could have just patched the "if" that matches the
static content, but that wouldn't have been useful for the
community ;) . If you guys tell me its ok, I could send you a patch
for webpy where all the "py" files are run, and the rest is treated as
static content.
Cheers,
Andrés Riancho
http://w3af.sf.net/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---