-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 27/03/2010 13:45, Jean-Denis Girard a écrit :
> However, when I try to login (standard login form), I get:
> DeprecationWarning: Passing in keyword arguments as url components is
> deprecated. Please pass arguments as a dictionary to the params argument.
> Then login fails.

With help from percious on IRC I found that tg.url must be changed in
the login template:

tg.url('/login_handler',
        came_from = came_from.encode('utf-8'), ...

becomes:

tg.url('/login_handler',
        params=dict(came_from=came_from.encode('utf-8'), ...

Now, my tg 2.0 seems to be running fine under 2.1b2 !


Thanks,
- -- 
Jean-Denis Girard

SysNux                  Systèmes  Linux  en Polynésie française
http://www.sysnux.pf/   Tél: +689 50 10 40 / GSM: +689 79 75 27
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkuu8iAACgkQuu7Rv+oOo/j2WQCfZ8p/yf7Tg+oeOQo2jLCSgk8c
NNoAoJmbEcTZB0EnswEHT3gj2AW5eJjj
=uC+c
-----END PGP SIGNATURE-----

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