> 1. How would I tell web.py to pass all URL requests matching a given
> regex to one particular function -- instead of needing to name the
> functions GET_this and GET_that -- and then find out in the function
> what the full URL is?
do you mean this?
urls = (
'/abc(.*)', 'abc',
'/efg(.*)', 'efg',
)
class abc:
def GET(self, tail):
# handle here your regx
class efg:
def GET(self, tail):
#handle here your regex
> 2. what's the best way to serve static files (html, gif, etc.)?
make directory named static under the root and put there all the
static files (js, css, images, etc.)
in your code refer to them as '/static/path_to_file'
> 3. why did web.py stop using cheetah as its template engine? is there
> something wrong with cheetah? is web.py improved over cheetah in some
> way? basically I want to know whether I should bother to change my
> templates over to web.py's templating engine.
Cheetah was there at the beginning and will not be supported in the
future versions of web.py
unlike what Green said I see no problem using templator in production
of high-traffic sites.
> 4. is web.py suitable for a website with heavy traffic?
Yes see at: http://webpy.org/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---