#1024: using tg_format broken for html/xml
----------------------+-----------------------------------------------------
 Reporter:  wavy      |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:           
Component:  CherryPy  |     Version:  0.9a6    
 Severity:  normal    |    Keywords:  tg_format
----------------------+-----------------------------------------------------
 On a fresh quickstart project, with no changes, the request

 http://localhost:8080/index?tg_format=html

 gives the traceback
 Traceback (most recent call last):
   File "/usr/lib/python2.4/site-
 packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py", line 105, in
 _run
     self.main()
   File "/usr/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 index
   File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
 py2.4.egg/turbogears/controllers.py", line 273, in expose
     output = database.run_with_transaction(
   File "/usr/lib/python2.4/site-packages/TurboGears-0.9a6-
 py2.4.egg/turbogears/database.py", line 221, in run_with_transaction
     retval = func(*args, **kw)
   File "<string>", line 5, in _expose
   File "_speedups.pyx", line 376, in _speedups.BaseDispatcher.__getitem__
   File "build/bdist.linux-i686/egg/dispatch/interfaces.py", line 15, in
 __call__NoApplicableMethods: ((<function index at 0xb766ccdc>,
 
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
 False, (<tgtest2.controllers.Root object at 0xb7683bac>,), {'tg_format':
 u'html'}), {})

 tg_format=json works fine, but html does not. Looks like a generic
 function error I think.

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