web/views/massmailing.py
branchtls-sprint
changeset 1390 78bab2d35637
parent 1318 50e1a778c5ee
child 1403 425892e14e67
equal deleted inserted replaced
1389:ae58c2e7e1f7 1390:78bab2d35637
    15 from cubicweb.web.action import Action
    15 from cubicweb.web.action import Action
    16 from cubicweb.web.form import FieldsForm, FormRenderer, FormViewMixIn
    16 from cubicweb.web.form import FieldsForm, FormRenderer, FormViewMixIn
    17 from cubicweb.web.formfields import StringField
    17 from cubicweb.web.formfields import StringField
    18 from cubicweb.web.formwidgets import CheckBox, TextInput, AjaxWidget, ImgButton
    18 from cubicweb.web.formwidgets import CheckBox, TextInput, AjaxWidget, ImgButton
    19 
    19 
       
    20 _ = unicode
    20 
    21 
    21 class SendEmailAction(Action):
    22 class SendEmailAction(Action):
    22     id = 'sendemail'
    23     id = 'sendemail'
    23     # XXX should check email is set as well
    24     # XXX should check email is set as well
    24     __select__ = implements(IEmailable) & match_user_groups('managers', 'users')
    25     __select__ = implements(IEmailable) & match_user_groups('managers', 'users')