choices function should now take the field as argument
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 27 Jan 2010 10:00:58 +0100
changeset 4396 98e98a5aa399
parent 4395 e50b71c0dd87
child 4397 fbac86ca7af1
choices function should now take the field as argument
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]