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.

On Fri, Mar 28, 2008 at 8:34 PM, Kevin Horn <[EMAIL PROTECTED]> wrote:

> On Fri, Mar 28, 2008 at 5:22 PM, Matías Iturburu <[EMAIL PROTECTED]>
> wrote:
>
> > Hi again. I've just founded this thread
> >
> > http://groups.google.com/group/toscawidgets-discuss/browse_frm/thread/107ea02d6ba4ce5e/983f2bf2f9164f72?tvc=1#
> >
> > where alberto gives nice instructions that I've followed and it's
> > working.
> > Nevertheless I'm suffering the same issue that Chris (having
> > /toscawidgets/resources appended before to my modules'  path)
> >
> > For alberto or anyone that knows. How can I prevent that from happening?
> >
> >
> > On Fri, Mar 28, 2008 at 5:53 PM, Matías Iturburu <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi. I'm giving my first steps with toscawidgets and the like.
> > >
> > > I've made myself a set of custom widgets, like this one:
> > >
> > > class ContactList(Widget):
> > >     params=['contact']
> > >     contact={'title':'Nombre Contacto','phone':'Nombre
> > > Contacto','email':'Nombre Contacto'}
> > >     engine_name = 'genshi'
> > >     template='''
> > >             <div xmlns="http://www.w3.org/1999/xhtml"; xmlns:py="
> > > http://genshi.edgewall.org/"; py:strip="">
> > >                 <ul class="contactList">
> > >                     <li><h3>Contactos</h3></li>
> > >                         <li class="contactData">
> > >                         <dl>
> > >                             <dt><a href="${contact}" py:content="
> > > contact.title">Nombre Contacto</a></dt>
> > >                             <dd><span>Telefono:<span py:content="
> > > contact.phone">2200202</span><br />
> > >                                 email:<span py:content="contact.email
> > > ">asdasddsd</span></span>
> > >                             </dd>
> > >                         </dl>
> > >                         </li>
> > >                     <li><a href="#">Agregar Contacto</a></li>
> > >
> > >                 </ul>
> > >             </div>
> > >         '''
> > >
> > > and I want to encapsulate a stylesheet that get pulled when the widget
> > > is instantiated.
> > > I've been struggling with the toscawidgets' documentation but this
> > > kind of things are laking or I'm too blind to see :P
> > >
> > > Eventually I would like to do the proper with javascript so... is
> > > there an easy way of registering this kind of resources (js, css) from the
> > > widget it self and that those get pulled when the widget is intatiated?
> > >
> > >
> > > I'm using tg 1.0 and genshi BTW.
> > >
> > > Thanks in advance.
> > >
> > > Matías Iturburu
> > > Revoluciones Informáticas
> > > www.revolucionesweb.com.ar
> > >
> >
> >
> >
> Try this thread:
>
>
> http://groups.google.com/group/toscawidgets-discuss/browse_frm/thread/f19c68de5db4aa58#
>
> Does that help?
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to