equal
deleted
inserted
replaced
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') |