#2268: override_template with concurrency and functionality issues
------------------------+---------------------------------------------------
 Reporter:  droggisch   |        Owner:        
     Type:  defect      |       Status:  new   
 Priority:  normal      |    Milestone:  2.0rc1
Component:  TurboGears  |      Version:  2.0b7 
 Severity:  normal      |   Resolution:        
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by droggisch):

 Well, we had the problem with our TG2 (b6). Our controllers looked like
 this before the fix:

 {{{
 @expose()
 def foo(self):
    override_template("the.template.I.usually.want")
    if some_condition:
      override_template("other.template")

 }}}

 And since when are the controllers instantiated every time? The nested
 controller idiom is

 class Root():
    sub = SubController()

 so even if you'd instantiate Root, SubController would not be re-
 instantiated.

 But even if they were, the decoration is part of the **unbound** method,
 isn't it?

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