Template Plugin options

0 views
Skip to first unread message

Karl Guertin

unread,
Oct 23, 2006, 6:05:22 PM10/23/06
to turbogea...@googlegroups.com
The plugin interface provides for options to be passed into the engine
at instantiation[1] with the implication that the engine will receive
the options that begin with its naming scheme.

[1] http://www.turbogears.org/docs/plugins/template.html

TG, however, does not actually pass in any options other than kid
options[2] (and, bizzarely, one genshi one).

[2] http://trac.turbogears.org/turbogears/browser/trunk/turbogears/view/base.py#L321

I'd patch it myself, but I'm not too familiar with config and can't
figure out a way to get either entrypoint.name+'.*' or all the config
keys.

It's also possible to pass the config object itself, but that isn't
really a dictionary and I'm not 100% sure whether that'd be a security
problem or not (don't think so, but I don't guess about security).

BTW, this was mentioned in the Genshi group[3], but I'm posting it
here so that something can be done about it.

[3] http://groups.google.com/group/genshi/browse_thread/thread/5700b76f71eccfa6/ce3b644604bb1b45

Reply all
Reply to author
Forward
0 new messages