Kevin Dangoor wrote:
> Yep... replying to another message from last year...
:D
>
> On 12/29/05, Michele Cella <[EMAIL PROTECTED]> wrote:
> >
> > And probably turbogears.url should take positional parameters into
> > account while generating an url. right?
>
> That sounds potentially difficult. I think the user of turbogears.url
> is the one that really knows what they want the generated URL to look
> like.
>
Yes, without a mapping layer (like Routes for example) it could be
difficult and error prone.
Better to just use tg.url (mmm sounds better than std.url :-)) and
python string substitution for positional.
tg.url("/%s/%s" % foo, bar)
it's still very convenient.
Ciao
Michele