On 4/7/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
>
> > On 4/7/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
> > > As I wrote, I'd like to take on the ticket. My main trouble is how these
> > > new classes suppose
> > to integrate with TG.
> > >
> > > E.g. for /static I can imaging having the code like;
> > >
> > > class RootController:
> > > static = StaticDirectory(...)
> > >
> > > But what about things like "/favicon.ico"?
> >
> > favicon_ico = StaticFile(...)
>
> And then?
>
> Should RootController provide .default() implementation that would check
> attributes to find a suitable static resource?
So, you've already created StaticFile and StaticDirectory? That's
groovy. I hadn't really thought much about the immediate application.
The easiest thing to do for what you're talking about is to add it to
the quickstart template and use
pkg_resources.resource_filename("%(package)s", "static")
Kevin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---