On 4/8/06, Max Ischenko <[EMAIL PROTECTED]> wrote:
>
> Kevin,
>
> > > 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.
>
> No, I'm not. Sorry to mislead you.
>
> > 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")
>
> Eh, sorry?
>
> Can you explain what that means?
pkg_resources.resource_filename() takes a package and a relative
directory/file and return the path to it on the filesystem.
-
> Thanks,
> Max.
>
>
> >
>
--
cheers
elvelind grandin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---