On Sep 19, 2006, at 9:44 AM, Fernando Aires wrote:
> > Kevin, > > Thanks for the answer. > > On 9/18/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote: >> >> I believe the problem is that it's expecting a compiled template at >> self.template. Take a look at Widget.display() and you'll see what >> it's trying to do when you call form(). > > As you could imagine, I'm just creating my first widget. > I'm trying to be as strict as it's possible to TurboGears' way of > doing a Widget. So, I found the load_kid_template widgets.meta method > thar returns template_c, and put it at the end of my code, as this: Actually, the TurboGears way of doing a widget is to use a Kid template for the widget, rather than string concatenation. > > (self.template_c, self.template) = > widgets.meta.load_kid_template(template) Your traceback below doesn't include the actual error. My guess is that the concatenated string is not valid XHTML. I do think your best bet is to override render() and use your widget that way, if you really want to use string concatenation. Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

