Diez B. Roggisch schrieb:
> On Tuesday 04 March 2008 16:58:38 midtoad wrote:
>> <tr><td><a href="/draw/3">row 3</td><td>.... </td></tr>
>>
>> What's the analogous way to do this in TurboGears?
> 
> Pretty much the same - because that is HTTP-protocol.
> <a href="/draw?row=3">...</a>

You should wrap the URL in a call to "tg.url()", so that the URL doesn't 
break, if you move your application to a different root, So, suppose 
"row" is a model obejct referencing the current row.

     <a href="${tg.url('/draw/%i' % row.id)}">...</a>

The "tg.url()" function is available in all templates rendered through 
the expose decorator.

See also http://docs.turbogears.org/1.0/GettingStarted/Arguments.


Chris

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