[snip]
> maybe you should just pass a callable that returns an xml.etree.Element
> (with subelements in there of course)
>
> I would do this like the following and then my web designer who does CSS
> would like me even more :)
>
> first in the controller (I put some dummy stuff to emulate yours):
>
> http://paste.turbogears.org/paste/1314
>
> then in the template:
>
> http://paste.turbogears.org/paste/1315
>
> as you can see I imagined some simplified model (Item class here) to
> emulate yours but I think this is one way to get what you want.
> The js code is also simplified because I did not know what was profile
> (a dictionnary of something it seems).
>
> This code was tested in a quickstarted TG 1.0.2.2 app with genshi
> templating.
That's a really neat way to handle this. Thanks a lot for taking the time to
wrap this example up so nicely.
Oh, actually I turned wordwrap off for this post (and did a bad job "wrapping"
it by hand), because I didn't want to mess up the traceback at the end.
Thanks
Uwe
--
Open Source Solutions 4U, LLC 1618 Kelly St
Phone: +1 707 568 3056 Santa Rosa, CA 95401
Cell: +1 650 302 2405 United States
Fax: +1 707 568 6416
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---