I think that this may be caused by TurboJson returning a generator rather than a list, so the JSON isn't generated inside TurboGears' auto-transaction handling. If you replace "return dict(counties=counties)" with "return dict(counties=list(counties)", it should work.
On Feb 28, 3:31 pm, "Rainy" <[EMAIL PROTECTED]> wrote: > Here's the full traceback, if that helps any..: > > 2007-03-01 04:32:33,696 cherrypy.msg INFO HTTP: Traceback (most recent > call last): > File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/ > cherrypy/_cphttptools.py", line 111, in _run > cherrypy.response.finalize() > File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/ > cherrypy/_cphttptools.py", line 404, in finalize > content = self.collapse_body() > File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/ > cherrypy/_cphttptools.py", line 375, in collapse_body > newbody = ''.join([chunk for chunk in self.body]) > File "/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/ > cherrypy/_cphttptools.py", line 343, in flattener > for x in input: > File "/usr/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg/ > simplejson/encoder.py", line 223, in _iterencode > File "/usr/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg/ > simplejson/encoder.py", line 196, in _iterencode_dict > File "/usr/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg/ > simplejson/encoder.py", line 220, in _iterencode > File "/usr/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg/ > simplejson/encoder.py", line 143, in _iterencode_list > File "/usr/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg/ > simplejson/encoder.py", line 231, in _iterencode > File "/usr/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg/ > simplejson/encoder.py", line 237, in _iterencode_default > File "/usr/lib/python2.4/site-packages/TurboJson-1.0-py2.4.egg/ > turbojson/jsonify.py", line 64, in default > return jsonify(obj) > File "<string>", line 5, in jsonify > File "/usr/lib/python2.4/site-packages/TurboJson-1.0-py2.4.egg/ > turbojson/jsonify.py", line 47, in jsonify_sqlobject > result[name] = getattr(obj, name) > File "<string>", line 1, in <lambda> > File "/usr/lib/python2.4/site-packages/SQLObject-0.7.3-py2.4.egg/ > sqlobject/main.py", line 990, in _SO_loadValue > selectResults = self._connection._SO_selectOne(self, dbNames) > File "/usr/lib/python2.4/site-packages/SQLObject-0.7.3-py2.4.egg/ > sqlobject/dbconnection.py", line 823, in __getattr__ > self.assertActive() > File "/usr/lib/python2.4/site-packages/SQLObject-0.7.3-py2.4.egg/ > sqlobject/dbconnection.py", line 749, in assertActive > assert not self._obsolete, "This transaction has already gone > through ROLLBACK; begin another transaction" > AssertionError: This transaction has already gone through ROLLBACK; > begin another transaction --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

