#2064: If a renderer is missing, it is not reported properly and the error 
message
is missleading
------------------------+---------------------------------------------------
 Reporter:  faide       |       Owner:  faide                              
     Type:  defect      |      Status:  new                                
 Priority:  normal      |   Milestone:  2.0b1                              
Component:  TurboGears  |     Version:  trunk                              
 Severity:  normal      |    Keywords:  renderer functions multiple engines
------------------------+---------------------------------------------------
 If you quickstart a TurboGears2 project and amend the controllers to have
 a that kind of thing:


 {{{
  12 class RootController(BaseController):
  13     #admin = DBMechanic(SAProvider(metadata), '/admin')
  14     secc = Secc()
  15
  16     @expose('genshi:testoid.templates.index')
  17     def index(self):
  18         return dict(page='index')
  19
  20     @expose('mako:testoid.templates.about')
  21     def about(self):
  22         return dict(page='about')
 }}}

 This seems to be ok, ''BUT'' the default application does not declare mako
 as a renderer and thus you'll get an error...

 The problem is that instead of reporting a missing renderer the tg2 stack
 will happily report a template lookup error.

 We should test if the desired renderer is present and report a
 MissingRendererError or something similar, to warn the user that he needs
 to change his app_cfg.py file and add:

 {{{
 base_config.renderers.append('mako')
 }}}

 in it...

 Thoughts?

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