Petr Jakeš schrieb: > BTW, what is the preferred way to present/show tabular data? > > 1. Using widgets (http://docs.turbogears.org/1.0/DataGridWidget) ? > 2. construct the table using the KID template (as we discussed in > this thread)?
Widgets have the advantage that you only need to write them once and then you can reuse them in many different Kid templates. Often you can even use one of the standard widgets like DataGridWidget, or you only need to slightly modify them which can be done easily by subclassing. But if you're doing something special that you probably won't use on another page, you can put it directly in the Kid template. If you later find that you need something similor on other pages as well, you can then still repackage this part of your tempalte as a widget. Note that widgets are provided by TurboGears, not by Kid itself. -- Christoph ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ kid-template-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kid-template-discuss
