#1960: tg_format=json backwards compatibility
------------------------+---------------------------------------------------
 Reporter:  nbm         |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  low         |    Milestone:  1.9.7a4  
Component:  TurboGears  |      Version:  trunk    
 Severity:  minor       |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by mramm):

 We should support this, but the right thing to do is to add support for
 lots of mime types via .type extensions.

 So you could tell the server you wanted json from the index page by going
 to:

 {{{http://mysuperapp.org/index.json}}}

 or HTML with

 {{{http://mysuperapp.org/index.html}}}

 or text/javascript with {{{http://mysuperapp.org/index.js}}}

 And if there's a handler for the associated content type that should be
 added.

 This patch should probably be applied as is, but it's not the long term
 solution for TG2.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/1960#comment:1>
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.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to