"mindlace" <[EMAIL PROTECTED]> writes:

> Alberto Valverde wrote:
>> You can store the template in a separate file just to ease this use
>> case:
>
> Maybe *I* can, but none of the widgets in the tg install have bothered.

To cite two: DataGrid, PaginateDataGrid.  You can find their templates at
turbogears/widgets/templates.

> This would be great, if I could ever use these things without having to
> edit the accompanying css/js files, which seldom seems to be the case.

You don't need to edit the accompanying css file.  You can edit one of your
own.  It can override the default CSS.  

> Basically, if you're willing to live with all the assumptions that the
> widget-writer made, you can use widgets ok; I just feel like (at the
> moment) it's way too difficult to change those assumptions you need to
> change for your app without digging through half a dozen layers of
> indirection.

Actually, you can change the template as you wish.  Override it completely.
You'll have to subclass to add new functionality, but this isn't hard as
well. 

You can do really nice things with widgets.


-- 
Jorge Godoy      <[EMAIL PROTECTED]>

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

Reply via email to