On Jun 22, 2:14 am, 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()
>

Thanks Justin. :)
--~--~---------~--~----~------------~-------~--~----~
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