"Ulysses Almeida" <[EMAIL PROTECTED]> writes:

> Hi list,
>
>   I'm using an AjaxGrid with edit/remove action. It uses
> tg_static/images to show some nice icons inner grid. Can I change
> those icons per/project, without need to change turbogears ones?
>   Do you think a patch to AjaxGrid, to make possible define
> image_icons as a search method return paramter, is useful? Some thing
> like:
>   actions = {'remove':{'function':'removerow',
>                               'params':[],
>                               'icon':'myremove.png'}}
>   This way Turbgears will look for myremove.png on projects
> static/images instead of tg_static/images.

What I believe is more interesting is subclassing (if you have many places
where you use those grids) or just replacing the template with custom ones.

I don't believe that forcing people to have icons per project -- if we provide
them on templates and people never use a grid then those icons will be copied
anyway -- and having multiple of those if one has multiple project is not
worth it.

I'd go for an approach where the icon can be specified as a parameter and
defaults for TG's ones.  So, if you don't do anything -- I mean you don't
change the icon on the instantiation of your grid -- then you'll use TG's
defaults.  If you specify a new icon then you'll use that. 


Be seeing you,
-- 
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to