Alberto Valverde <[EMAIL PROTECTED]> writes: > Wait! Before you shoot yourself on the foot (or someplace worst ;).
The foot! Please, let it be in the foot! :-) > I've just found out that mytemplate should be an already compiled > template. This is because the widget __metaclass__ compiles the template when > classes are initiialized, not when instances are. You can override the > template as I told you, but make sure: > > repr(mytemplate) prints something like: > > <turbogears.widgets.newforms.ListForm.Template.Template object at 0x17769d0> And how can I achieve that? Using something like serialize()? > RFC: > > How about fixing the widget constructor so it does this automatically for > us?? I think it would be a good idea as users would normally override > templates with a string, not an already compiled template... +1 for that. And let it be a Kid file as well. > I can write a patch as soon as i get a green light as I've booked myself > exclusively for TG development/testing today ;) I wish I could do that as well, but I'm a lot late with two apps... -- Jorge Godoy <[EMAIL PROTECTED]>

