#2273: [PATCH] Pass toscawidgets parameters from TG config so can cache header
created
-------------------------+--------------------------------------------------
 Reporter:  LawrenceK    |        Owner:  jorge.vargas
     Type:  enhancement  |       Status:  closed      
 Priority:  normal       |    Milestone:  2.1a2       
Component:  TurboGears   |      Version:  2.0b7       
 Severity:  normal       |   Resolution:  fixed       
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by percious):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 I added this here, but I modified it slightly:

 {{{
         twconfig = {'toscawidgets.framework.default_view':
 self.default_renderer,
                     'toscawidgets.framework.translator': ugettext,
                     'toscawidgets.middleware.inject_resources': True,
                     }
         for k,v in config.iteritems():
             if k.startswith('toscawidgets.framework.') or
 k.startswith('toscawidgets.middleware.'):
                 twconfig[k] = v
                 twconfig.update()
         app = tw_middleware(app, twconfig)

 }}

 By changing the ordering, it is much easier to override the default
 configuration.

 I'm closing this ticket, since there is a TW ticket that covers the other
 issue.  Since I maintain TW, and I know of the other issue, I should be
 able to straighten it out.

 cheers.
 -chris

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