url tgparams

0 views
Skip to first unread message

imix

unread,
Jun 25, 2007, 4:18:13 PM6/25/07
to TurboGears
Hi

why does turbogears.url change its parameter tgparams?

The line tgparams.update(kw) changes the dict itself so that i can not
use it without copying it beforehand (if I want to use the dict in
another location without the addition of kw). Is this intentional? If
yes, what is the reasoning behind it?

thanks

Stefan

anderbubble

unread,
Jun 25, 2007, 8:08:46 PM6/25/07
to TurboGears
It seems to me that this is a flat out bug: it should be the other way
around, (kw.update(tgparams)) and use kw from that point on.

~jon

imix

unread,
Jun 26, 2007, 9:34:02 AM6/26/07
to TurboGears
OK, i opened a ticket on the turbogears trac:
http://trac.turbogears.org/ticket/1414

thanks

Stefan

Reply all
Reply to author
Forward
0 new messages