On Fri, Mar 28, 2008 at 6:55 PM, Matías Iturburu <[EMAIL PROTECTED]>
wrote:
> Hi kevin, I've seen that post a little ago.
> I'm quite noobish with python and try to avoid getting so low level in the
> libraries. That said what I don't realize is how to override the prefix in
> toscawidgets.middleware (although I've seen the code). Can you give me an
> snipet please?.
>
> What I'm doing to workaround this is to give the <link> right in the
> template string but that makes the css link to render right in the middle of
> the ul instead of placing it self properly in the head section so I think
> it's not a really proper way to go.
>
> Thanks for your feedback.
>
>
I haven't dealt much with ToscaWidgets yet, but this bit looked helpful:
'''
As you've said, the /toscawidgets part is easy to override in
TGWidgetsMiddleware, however, the /resources part is trickier, but
possible:
from toscawidgets import resources
resources.registry = resources.ResourcesApp("/another_prefix")
'''
Kevin Horn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---