Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #714 (closed task: wontfix)

Opened 13 years ago

Last modified 10 years ago

FastData DataController can't add variables to template dict

Reported by: tlesher@… Owned by: anonymous
Priority: normal Milestone:
Component: FastData Version:
Severity: normal Keywords:
Cc:

Description

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.

Change History

comment:1 Changed 13 years ago by tlesher@…

  • Component changed from Widgets to FastData

comment:2 Changed 13 years ago by jorge.vargas

  • Type changed from enhancement to task
  • Milestone set to __future__

comment:3 Changed 10 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to wontfix

FastData? is unmaintained, please use sprox.org.

2009 ticket cleanup

comment:4 Changed 10 years ago by anonymous

  • Milestone __future__ deleted

Milestone future deleted

Note: See TracTickets for help on using tickets.