What about HTTP headers and content type of such "serving" ?

On 21 июн, 22:14, Justin Davis <[EMAIL PROTECTED]> wrote:
> url = (
>     '/skins/default/(.*)',  'SkinsDefault'
> )
>
> class SkinsDefault:
>     def GET(self, filename):
>         try:
>             f = open('skins/default/' + filename)
>             print f.read() # or return f.read() if you're using 0.3
>
>         except IOError: # No file named that
>             web.notfound()
>
> On Jun 21, 12:25 pm, Bibby <[EMAIL PROTECTED]> wrote:
>
> > Hi, all.
>
> > I use 'skins/default/' to store Mako template files, and also wanna
> > put all .js, .css files in this directory. How can i solve this?
>
> > I read web/httpserver.py, it is hard-coded as '/static/', please do
> > not tell me use '/static/default/', '/static/other/', this is what i
> > asked.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to