On 3/30/06, Ed Singleton <[EMAIL PROTECTED]> wrote:
> In my Kid template, can I do something better than:
>
> <a py:attrs="href='contacts?' + ('start='+start+offset or ''') +
> ('offset='+offset or '')">
>
> maybe there's a way to pass a dictionary and have it automatically
> converted into the a query string (which could be much better when I
> start letting them do searches on it and more flexible when new fields
> are added).
In answer to this specific question, you would probably find the
tg.url function handy.
<a py:attrs="href=tg.url('contacts', start=start+offset or '',
offset=offset or ''))">
Kevin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---