#1031: tg.include_widgets = [...] breaks json-output
-----------------------+----------------------------------------------------
Reporter: droggisch | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy | Version: 0.9a5
Severity: normal | Keywords:
-----------------------+----------------------------------------------------
With this exception:
{{{
2006-07-17 18:48:17,886 cherrypy.msg INFO HTTP: Page handler: <bound
method CalendarController.moved of <dndtest.controllers.CalendarController
object at 0x1367310>>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line
105, in _run
self.main()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/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 "<string>", line 3, in moved
File "/Users/deets/software/vc/turbogears/turbogears/controllers.py",
line 281, in expose
output = database.run_with_transaction(
File "<string>", line 5, in run_with_transaction
File "/Users/deets/software/vc/turbogears/turbogears/database.py", line
245, in so_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File "/Users/deets/software/vc/turbogears/turbogears/controllers.py",
line 298, in <lambda>
mapping, fragment, *args, **kw)))
File "/Users/deets/software/vc/turbogears/turbogears/controllers.py",
line 332, in _execute_func
return _process_output(output, template, format, content_type,
mapping, fragment)
File "/Users/deets/software/vc/turbogears/turbogears/controllers.py",
line 73, in _process_output
mapping=mapping, content_type=content_type,fragment=fragment)
File "/Users/deets/software/vc/turbogears/turbogears/view/base.py", line
127, in render
return turbogears.util.adapt_call(engine.render, **dict(info=info,
format=format, fragment=fragment, template=template, mapping=mapping))
File "/Users/deets/software/vc/turbogears/turbogears/util.py", line 161,
in adapt_call
return func(*args, **kw)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/TurboJson-0.9.2-py2.4.egg/turbojson/jsonsupport.py", line
28, in render
return jsonify.encode(info)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/TurboJson-0.9.2-py2.4.egg/turbojson/jsonify.py", line 63,
in encode return _instance.encode(obj)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/simplejson-1.3-py2.4.egg/simplejson/encoder.py", line 270,
in encode
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/simplejson-1.3-py2.4.egg/simplejson/encoder.py", line 223,
in _iterencode
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/simplejson-1.3-py2.4.egg/simplejson/encoder.py", line 196,
in _iterencode_dict
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/simplejson-1.3-py2.4.egg/simplejson/encoder.py", line 231,
in _iterencode
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/simplejson-1.3-py2.4.egg/simplejson/encoder.py", line 237,
in _iterencode_default
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/TurboJson-0.9.2-py2.4.egg/turbojson/jsonify.py", line 58,
in default
return jsonify(obj)
File "<string>", line 5, in jsonify
File "_speedups.pyx", line 376, in _speedups.BaseDispatcher.__getitem__
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4
/site-packages/RuleDispatch-0.5a0.dev_r2115-py2.4-macosx-
10.4-ppc.egg/dispatch/interfaces.py", line 15, in __call__
NoApplicableMethods: ((JSLink(name='js/MochiKit.js'),), {})
}}}
Turning tg.include_widgets off solves the problem.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1031>
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
-~----------~----~----~----~------~----~------~--~---