On Thu, Jun 9, 2011 at 10:49 AM, Jason <[email protected]> wrote:
> Hello,
> Using Pyramid I would like to filter expression that evaluate to None to be
> output as an empty string instead of "None". I have made a filter:
> def none_escape(value):
>     """ Returns empty string if value is None - used as Mako filter. """
>     return value if value is not None else ''

I thought we were going to patch Pyramid to do this by default ?

-- 
Mike Orr <[email protected]>

-- 
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