On 11 ago, 03:47, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> How make hyperlink that passes parameters to controller?
>
> I tried to make a Kid template that had something like
>     <a href="/foo?a=3&c=1">bar</a>
>  but Kid didn't like the ampersand in the URL.
>
> chris

You can do:
    <a href="/foo/3/1">bar</a>

In controller.py:
    def foo(self, a, c):
        """Something whit a and c"""
        return "a is %s and c is %s" % (a, c)


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