#2416: Spurious SAWarnings caused by built-in SQL-based auth
------------------------+---------------------------------------------------
Reporter: pitrou | Owner: Gustavo
Type: defect | Status: assigned
Priority: normal | Milestone: 2.1b2
Component: TurboGears | Version: 2.1a1
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Changes (by Gustavo):
* owner: => Gustavo
* status: new => assigned
Comment:
Replying to [comment:5 chrisz]:
> Yes, the methods work with both str and unicode, but if you pass a str,
then SA gives these warnings because you compare a Python str value with a
unicode database colum. I don't think this will be solved with #2438,
because request.POST will still return str values when there are no non-
ascii chars. But we should finish #2438 first anyway, and then we can come
back to this again.
According to my tests, the new repoze.who-friendlyform (which uses
request.POST under the hood) is returning ''unicode'' for both ASCII and
Unicode, that's why I think those warnings will be gone.
However, I think I'm going to make it return ''str'' when using ASCII just
in case, but I think that's another story.
--
Ticket URL: <http://trac.turbogears.org/ticket/2416#comment:6>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en