Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #520 (closed enhancement: fixed)

Opened 13 years ago

Last modified 13 years ago

[PATCH] Make the template of a widget be overridable at construction time with a template string

Reported by: alberto@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TG Widgets Version:
Severity: normal Keywords:


As suggested in  http://groups.google.com/group/turbogears/browse_thread/thread/7eeb6a9e8bf08814/24467826a160fcd0#24467826a160fcd0, I've done a bit of MetaWidget? twicking so a widget's template can be overriden at the cosntructor, not only with a Template instance or a template file (I think), but with a template string aswell.

This string would get compiled into a uniquely-named module at the instances initialization if needed.

Tests included (as a proof of concept, too). Backwards compatible too.


newbase_template_overridal.patch Download (2.8 KB) - added by anonymous 13 years ago.

Change History

Changed 13 years ago by anonymous

comment:1 Changed 13 years ago by anonymous

  • Status changed from new to closed
  • Resolution set to fixed

committed at r655

Note: See TracTickets for help on using tickets.