TG 2.3.8 and repoze.what

13 views
Skip to first unread message

Michael Pedersen

unread,
Apr 26, 2016, 11:34:14 PM4/26/16
to tg-trunk
I'm avoiding grabbing all of the details of my current error, since I have a feeling it's something that has been mooted by the new versions and change away from Pylons (yes, it really has been that long since I've really done much).

I'm trying to update my tests for tgext.menu, and am getting an interesting error from the repoze plugins. Specifically, this one:

  File "/home/vagrant/venv/lib/python2.7/site-packages/repoze/who/plugins/friendlyform.py", line 122, in identify
    request = Request(environ, charset=self.charset)
  File "/home/vagrant/venv/lib/python2.7/site-packages/webob/request.py", line 137, in __init__
    "req.decode(charset)``" % charset
DeprecationWarning: You passed charset='iso-8859-1' to the Request constructor. As of WebOb 1.2, if your application needs a non-UTF-8 request charset, please construct the request without a charset or with a charset of 'None',  then use ``req = req.decode(charset)``

What should I be reading to help me get past this hump?

Alessandro Molina

unread,
Apr 27, 2016, 2:55:14 AM4/27/16
to tg-trunk
friendlyform isn't compatible with recent webob versions, you probably want to switch to te new auth layer using repoze.who 2 -> http://turbogears.readthedocs.org/en/latest/cookbook/upgrading.html#new-authentication-layer

--
You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears-tru...@googlegroups.com.
To post to this group, send email to turbogea...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears-trunk.
For more options, visit https://groups.google.com/d/optout.

Michael Pedersen

unread,
Apr 27, 2016, 8:42:23 AM4/27/16
to tg-trunk
Thank you. That document is something I knew existed, but plain forgot about. That's going to help me out as I get back up to speed on everything.
Reply all
Reply to author
Forward
0 new messages