Hey Chris,

With regards to the flash messaging API, is there a reason why you chose not 
to provide a method which returns *any* flash message from any queue 
(preferably with a msg:queue key:val)? It would sure make template code 
easier if I *do* want different queues but *don't* really need them to be 
displayed in a complex manner in my templates.

For example, something like this would be nice to be able to do in my jinja2 
templates (without having to write my own session helpers):

{% if request.session.peek_flashes() %}
<div id="flash">
    {% for flash in request.session.pop_flashes() %}
        <div class="{{flash['queue'] or 
'noqueue'}}">{{flash['message']}}</div>
    {% endfor %}
</div>
{% endif %}

Thanks,
Seth

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-de...@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to