On Feb 6, 2006, at 1:04 PM, Jorge Godoy wrote:

And how can I achieve that?  Using something like serialize()?

kid.load_template(template_string, name=module_name)

module_name is the name of the module you want the tempate module to be called (I think)


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.


Check out:
http://trac.turbogears.org/turbogears/attachment/ticket/520/ newbase_template_overridal.patch

I've implemented it and written a test for it, from running the tests at newfastdata and widgets it seems that nothing is broken.

*I think* it should work if you specify a template filename as well, but I would appreciate if you can test it (if possible) just to be sure... (a unittest would be soooo great ;)

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...


Yeah, me too... :) I thought TG would make me so fast that I've miscalculated two delivery dates... probably wouldn't have miscalculated if TG was at 0.9 though (as i *really* think it will be a great framework once it's there...). But now i've got some pressure removed from by back i think the best thing I can do is help to get it there ASAP by getting my hands dirty with it.

Regards,
Alberto


Reply via email to