# HG changeset patch # User Sylvain Thénault # Date 1264582858 -3600 # Node ID 98e98a5aa399faca846e00fe2bbd52d025c474fc # Parent e50b71c0dd871007798612f00cfd2418d2c67823 choices function should now take the field as argument diff -r e50b71c0dd87 -r 98e98a5aa399 web/views/massmailing.py --- a/web/views/massmailing.py Wed Jan 27 10:00:35 2010 +0100 +++ b/web/views/massmailing.py Wed Jan 27 10:00:58 2010 +0100 @@ -35,7 +35,7 @@ **params) -def recipient_vocabulary(form): +def recipient_vocabulary(form, field): vocab = [(entity.get_email(), entity.eid) for entity in form.cw_rset.entities()] return [(label, value) for label, value in vocab if label]