Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1031 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

tg.include_widgets = [...] breaks json-output

Reported by: droggisch Owned by: anonymous
Priority: normal Milestone:
Component: TurboGears Version: 0.9a6
Severity: normal Keywords:
Cc:

Description

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.

Change History

comment:1 Changed 13 years ago by droggisch

  • Version changed from 0.9a5 to 0.9a6
  • Component changed from CherryPy to TurboGears

comment:2 Changed 13 years ago by elvelind

  • Status changed from new to closed
  • Resolution set to fixed

fixed.

Note: See TracTickets for help on using tickets.