> 
> Even though I do not really understand it:
> 
> - why "makeEditLink" without argument as replacement of (the string)
> "id"?
> - but why defined with argument?
> - and why the class as argument?
> 

What else than the object the grid is iterating over would you expect? 
If you pass

("Edit", makeEditLink)

as column, the first thing is the *display name* of the column, the 
second the accessor.

So - where should the accessor know from that it should work with the 
id? Or any other property? What happens if the displayed value should be 
composed of several properties, e.g. the difference between two date-stamps?

That's why the accessor-functions get passed the whole object.


Diez

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