On Nov 29, 2006, at 5:29 AM, MR wrote:
>
> Hello,
>
> I just spent an awful lot of time discovering the hard way that
> ${value} isn't automatically available to the kid template with a
> class
> inheriting from CompoundWidget like it is with Widget. Along the
> way, I
> also noticed that you can't just pass in named parameters like
> item=['list','of','stuff'] to a Widget's render() method and have it
> available in the kid template, but you _can_ do this with a
> CompoundWidget's render() method. Is this difference documented? I
> really tried to look this up but didn't find it anywhere.
>
> Aside from the obvious observation that CompoundWidgets house multiple
> widgets while Widgets involve a single Widget, could someone
> comment on
> why there are the differences (at least that I perceive) in the way
> that render() works.
Looks like you're forgetting to call super(YourClass).render()
cooperatively in one of your sublcasses. The difference between both
renders is minimal and certainly should not cause what you're
experiencing.
Maybe If you can post some sample code and we can help you better.
Alberto
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---