I have no idea why this doesn't work. I can pull the same data from
the TG console and move into lists and its fine but I can't do it
within a TG method. Does anyone have any ideas?
My uri looks like this:
sqlobject.dburi="mysql://busysignal:[EMAIL
PROTECTED]/busysignal?unix_socket=/var/run/mysqld/mysqld.sock&use_unicode=1&charset=utf8&sqlobject_encoding=utf-8"
Also my my.cnf is littered with utf8s.
It works on my box at home but not on the server and I think my home
box is running x86 and the server is running amd64, both gentoo linux.
I don't know if arch has anything to do with it.
It doesn't matter if I proxy is behind apache or I use it directly.
Any ideas would be very very much appreciated as I have tried many
things and broken many things in the process.
-Ian
Page handler: <function _wrapper at 0x2afd30150668>
Traceback (most recent call last):
File
"/usr/lib64/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 105, in _run
self.main()
File
"/usr/lib64/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 254, in main
body = page_handler(*virtual_path, **self.params)
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/identity/conditions.py",
line 275, in _wrapper
return fn( *args, **kw )
File "<string>", line 3, in getPlants
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py",
line 326, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/database.py",
line 246, in so_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py",
line 343, in <lambda>
mapping, fragment, args, kw)))
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py",
line 367, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/errorhandling.py",
line 71, in try_call
return func(self, *args, **kw)
File "<string>", line 3, in getPlants
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py",
line 165, in validate
return errorhandling.run_with_errors(errors, func, *args, **kw)
File
"/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/errorhandling.py",
line 106, in run_with_errors
return func(self, *args, **kw)
File
"/home/ian/workspace/busysignal/busysignal/controllers/admin/inventory/plant.py",
line 132, in getPlants
log.debug(str([p.id for p in context[0:limit]]))
File
"/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/sresults.py",
line 155, in __iter__
return iter(list(self.lazyIter()))
File
"/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/sresults.py",
line 163, in lazyIter
return conn.iterSelect(self)
File
"/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/dbconnection.py",
line 776, in iterSelect
select, keepConnection=True)))
File
"/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/dbconnection.py",
line 705, in __init__
self.dbconn._executeRetry(self.rawconn, self.cursor, self.query)
File
"/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/mysql/mysqlconnection.py",
line 77, in _executeRetry
myquery = unicode(query, self.encoding)
TypeError: decoding Unicode is not supported
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---