#714: FastData DataController can't add variables to template dict
-------------------------------+--------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  anonymous
     Type:  enhancement        |      Status:  new      
 Priority:  normal             |   Milestone:           
Component:  Widgets            |     Version:           
 Severity:  normal             |    Keywords:           
-------------------------------+--------------------------------------------
 It would be nice to be able to let DataController clients add variables to
 the dict returned by its methods before rendering.

 For example, the user can already override the template used for the
 DataController, but there's no way to provide additional variables for use
 by those templates (short of view.variable_providers, which is site-wide
 and not easily updatable per-page).

 As a first attempt, I tried deriving from DataController, and for each
 exposed method, calling super(X,self).methodname and adding to the return
 value, but the expose() decorator in DataController has already rendered
 the template by the time the child class gets it.

 It appears that the only way to do this right now is to derive from
 DataController, overload each method, copy each method body into the
 derived method, and add the variables there.

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