[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-10-23 Thread Matthew Bevan
Howdy!Was this ever resolved, patched, or added to svn?  Testing using __variables__ with the release beta of 1.0 does nothing.  This is a very useful feature (esp. if combined with __javascript__ or even just __widgets__) and I'm getting tired of passing dict(portlets=portlets, ...) on every

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Alberto Valverde
On Jul 31, 2006, at 10:32 PM, Kevin Dangoor wrote: On Jul 16, 2006, at 8:34 PM, Christopher Arndt wrote: how can I inject a widget into the template variables without explicitly including it in the returned dict of a controller method? I know about view.variable_providers, but

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Michele Cella
Hi guys, what about totally changing the way variable providers works? My idea is to check for a special method inside the actual controller that returns a dict of variables that will be injected inside the dict returned by every method of that controller, this allows for great flexibility

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Alberto Valverde
Hi Michele, On Aug 1, 2006, at 12:10 PM, Michele Cella wrote: Hi guys, what about totally changing the way variable providers works? Too drastic for 1.0, isn't it? ;) My idea is to check for a special method inside the actual controller that returns a dict of variables that will be

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Jason Chu
On Wed, 2 Aug 2006 02:09:20 +0200 Alberto Valverde [EMAIL PROTECTED] wrote: We can still keep the good 'ol variable_providers untouched for backwards compatibility. I like variable_providers, it lets me specify things that are available throughout the entire application, instead of on a

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Michele Cella
Alberto Valverde wrote: Hi Michele, On Aug 1, 2006, at 12:10 PM, Michele Cella wrote: Hi guys, what about totally changing the way variable providers works? Too drastic for 1.0, isn't it? ;) Yep, definitely... :D My idea is to check for a special method inside the actual

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Michele Cella
Jason Chu wrote: On Wed, 2 Aug 2006 02:09:20 +0200 Alberto Valverde [EMAIL PROTECTED] wrote: We can still keep the good 'ol variable_providers untouched for backwards compatibility. I like variable_providers, it lets me specify things that are available throughout the entire

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-08-01 Thread Jason Chu
On Tue, 01 Aug 2006 17:57:01 -0700 Michele Cella [EMAIL PROTECTED] wrote: Jason Chu wrote: On Wed, 2 Aug 2006 02:09:20 +0200 Alberto Valverde [EMAIL PROTECTED] wrote: We can still keep the good 'ol variable_providers untouched for backwards compatibility. I like

[TurboGears] Re: How to inject a widget into the template variables independent of controller output?

2006-07-31 Thread Kevin Dangoor
On Jul 16, 2006, at 8:34 PM, Christopher Arndt wrote: how can I inject a widget into the template variables without explicitly including it in the returned dict of a controller method? I know about view.variable_providers, but unfortunately controllers._process_output() does not retrieve