On Jul 5, 2006, at 7:15 PM, Jose Galvez wrote:

> is is possible to include a class when using link_to? h.link_to 
> ('name',
> h.url(action='singleClick'), class='myclass') fails as I would expect
> because class is a python kw.

What would you want it to do with the class? There's a special  
_filter option for use with named routes that lets you define a  
function that can alter the keyword arguments for a route before the  
route is actually generated. See this thread for details:
http://groups.google.com/group/pylons-discuss/browse_frm/thread/ 
a8c210439ecc7966/

And for an example in the context of the original thread:
http://groups.google.com/group/pylons-discuss/msg/52799e38b70bce3e

The latter URL shows how you use a filter.

HTH,
Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to