This is the correct patch. Had created the first one against a
partially modified version of view.py.
--- view.py.orig 2007-09-08 00:32:01.000000000 -0400
+++ view.py 2007-09-08 00:34:19.000000000 -0400
@@ -54,12 +54,13 @@
raise EngineException("No plugin available for engine
'%s'" % name)
options = options or self.options or {}
- options = options.copy()
+ tmp_options = {}
# emulate Kid and Genshi's dotted-path notation lookup
- options.setdefault('mako.directories', []).extend(sys.path)
+ tmp_options.setdefault('mako.directories',
[]).extend(sys.path)
# make sure mako produces utf-8 output so we can decode it
and use
# unicode internally
- options['mako.output_encoding'] = 'utf-8'
+ tmp_options['mako.output_encoding'] = 'utf-8'
+ options.update(tmp_options)
extra_vars_func = extra_vars_func or self.extra_vars_func
# Check for deprecated use.
--Renier
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---