Mercurial > libervia-backend
comparison frontends/src/jp/cmd_event.py @ 2491:5895e4daae8c
jp (event): added missing arg to _attend_filter
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Feb 2018 18:28:39 +0100 |
parents | 0046283a285d |
children | 772447ec070f |
comparison
equal
deleted
inserted
replaced
2490:b4bf282d6354 | 2491:5895e4daae8c |
---|---|
217 | 217 |
218 def add_parser_options(self): | 218 def add_parser_options(self): |
219 self.parser.add_argument('-m', '--missing', action='store_true', help=_(u'show missing people (invited but no R.S.V.P. so far)')) | 219 self.parser.add_argument('-m', '--missing', action='store_true', help=_(u'show missing people (invited but no R.S.V.P. so far)')) |
220 self.parser.add_argument('-R', '--no-rsvp', action='store_true', help=_(u"don't show people which gave R.S.V.P.")) | 220 self.parser.add_argument('-R', '--no-rsvp', action='store_true', help=_(u"don't show people which gave R.S.V.P.")) |
221 | 221 |
222 def _attend_filter(self, attend): | 222 def _attend_filter(self, attend, row): |
223 if attend == u'yes': | 223 if attend == u'yes': |
224 attend_color = C.A_SUCCESS | 224 attend_color = C.A_SUCCESS |
225 elif attend == u'no': | 225 elif attend == u'no': |
226 attend_color = C.A_FAILURE | 226 attend_color = C.A_FAILURE |
227 else: | 227 else: |