apologies!   couldn't see the wood or the trees. As usual, after
posting it all becomes clearer. I can now see the "default_filters" is
just in a different place in my file, on the second last line.

just the "output_encoding" and "error_handling" is different.

Tks,
Mark J

On Jul 7, 6:05 pm, markj <[email protected]> wrote:
> If I compare p73 of the PYLONS book section "Security considerations
> and Web Helpers"
>
> From the book:
> # Create the Mako TemplateLookup, with the default autoescaping
> config['pylons.app_globals'].mako_lookup = TemplateLookup(
>     directories=paths['templates'],
>     module_directory=os.path.join(app_conf['cache_dir'], 'templates'),
>     input_encoding='utf-8', output_encoding='utf-8',
>     imports=['from webhelpers.html import escape'],
>     default_filters=['escape'])
>
> From my created file:
>     # Create the Mako TemplateLookup, with the default auto-escaping
>     config['pylons.app_globals'].mako_lookup = TemplateLookup(
>         directories=paths['templates'],
>         error_handler=handle_mako_error,
>         module_directory=os.path.join(app_conf['cache_dir'],
> 'templates'),
>         input_encoding='utf-8', default_filters=['escape'],
>         imports=['from webhelpers.html import escape'])
>
> The "default_filters" is missing from the created file and the
> "error_handler" line is missing from the book.Is this an errata on the
> book or something else I don't understand?
>
> Tks,
> Mark J
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to