#838: Traceback on identity login form submit: "TypeError: argument 1 must be
str, not unicode"
----------------------+-----------------------------------------------------
 Reporter:  fabian    |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:           
Component:  Identity  |     Version:  0.9a5    
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 Hi,

 I tried to follow the IdentityManagement tutorial and get this traceback,
 when I try to login:

 {{{
 Traceback (most recent call last):
   File
 
"/home/fabian/usr/lib/python2.4/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
 line 103, in _run
     applyFilters('before_main')
   File
 
"/home/fabian/usr/lib/python2.4/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py",
 line 151, in applyFilters
     method()
   File "/home/fabian/usr/lib/python2.4/TurboGears-0.9a5-
 py2.4.egg/turbogears/visit/api.py", line 154, in before_main
     plugin.record_request( visit )
   File "/home/fabian/usr/lib/python2.4/TurboGears-0.9a5-
 py2.4.egg/turbogears/identity/visitor.py", line 162, in record_request
     identity= self.identity_from_request(visit.key)
   File "/home/fabian/usr/lib/python2.4/TurboGears-0.9a5-
 py2.4.egg/turbogears/identity/visitor.py", line 86, in
 identity_from_request
     identity= source(visit_key)
   File "/home/fabian/usr/lib/python2.4/TurboGears-0.9a5-
 py2.4.egg/turbogears/identity/visitor.py", line 143, in identity_from_form
     identity= self.provider.validate_identity( user_name, pw, visit_key )
   File "/home/fabian/usr/lib/python2.4/TurboGears-0.9a5-
 py2.4.egg/turbogears/identity/soprovider.py", line 209, in
 validate_identity
     user= user_class.by_user_name( user_name )
   File "<string>", line 1, in <lambda>
   File "/home/fabian/usr/lib/python2.4/SQLObject-0.7.1dev_r1675-
 py2.4.egg/sqlobject/main.py", line 1266, in _SO_fetchAlternateID
     result, obj = cls._findAlternateID(name, dbName, value, connection)
   File "/home/fabian/usr/lib/python2.4/SQLObject-0.7.1dev_r1675-
 py2.4.egg/sqlobject/main.py", line 1262, in _findAlternateID
     value), None
   File "/home/fabian/usr/lib/python2.4/SQLObject-0.7.1dev_r1675-
 py2.4.egg/sqlobject/dbconnection.py", line 587, in _SO_selectOneAlt
     return self.queryOne("SELECT %s FROM %s WHERE %s = %s" %
   File "/home/fabian/usr/lib/python2.4/SQLObject-0.7.1dev_r1675-
 py2.4.egg/sqlobject/dbconnection.py", line 755, in queryOne
     return self._dbConnection._queryOne(self._connection, s)
   File "/home/fabian/usr/lib/python2.4/SQLObject-0.7.1dev_r1675-
 py2.4.egg/sqlobject/dbconnection.py", line 341, in _queryOne
     self._executeRetry(conn, c, s)
   File "/home/fabian/usr/lib/python2.4/SQLObject-0.7.1dev_r1675-
 py2.4.egg/sqlobject/dbconnection.py", line 297, in _executeRetry
     return cursor.execute(query)
 TypeError: argument 1 must be str, not unicode
 }}}

 I set component to "Identity" as it is where it appears. But from the
 traceback one could guess that sqlobject struggles with Unicode here.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/838>
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.
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-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to