Mercurial > libervia-backend
comparison src/plugins/plugin_misc_invitations.py @ 2223:c6c9a97ffebf
plugin invitations: fixed url_template check
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 16 Apr 2017 17:57:40 +0200 |
parents | 77a3d0a28642 |
children | ebc0c1701811 |
comparison
equal
deleted
inserted
replaced
2222:bdc64c487e21 | 2223:c6c9a97ffebf |
---|---|
159 raise ValueError(_(u"You can't use following key(s) in both args and extra: {}").format( | 159 raise ValueError(_(u"You can't use following key(s) in both args and extra: {}").format( |
160 u', '.join(set(kwargs).intersection(extra)))) | 160 u', '.join(set(kwargs).intersection(extra)))) |
161 | 161 |
162 self.checkExtra(extra) | 162 self.checkExtra(extra) |
163 | 163 |
164 if not 'url_template' in extra and not 'message_body' in extra: | 164 if not 'url_template' in kwargs and not 'message_body' in kwargs: |
165 raise ValueError(_(u"You need to provide url_template if you use default message body")) | 165 raise ValueError(_(u"You need to provide url_template if you use default message body")) |
166 | 166 |
167 | 167 |
168 ## uuid | 168 ## uuid |
169 log.info(_(u"creating an invitation")) | 169 log.info(_(u"creating an invitation")) |