Mercurial > libervia-backend
comparison src/plugins/plugin_misc_invitations.py @ 2322:310a454c8657
plugins invitation, XEP-0277: strip language, we don't want spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Jul 2017 19:05:33 +0200 |
parents | c05000d00dbb |
children | 8b37a62336c3 |
comparison
equal
deleted
inserted
replaced
2321:c2a9da96e40b | 2322:310a454c8657 |
---|---|
252 yield self.host.disconnect(guest_profile) | 252 yield self.host.disconnect(guest_profile) |
253 | 253 |
254 ## email | 254 ## email |
255 language = kwargs.pop(u'language', None) | 255 language = kwargs.pop(u'language', None) |
256 if language is not None: | 256 if language is not None: |
257 extra[u'language'] = language | 257 extra[u'language'] = language.strip() |
258 | 258 |
259 if email is not None: | 259 if email is not None: |
260 extra[u'email'] = email | 260 extra[u'email'] = email |
261 data_format.iter2dict(KEY_EMAILS_EXTRA, extra) | 261 data_format.iter2dict(KEY_EMAILS_EXTRA, extra) |
262 url_template = kwargs.pop(u'url_template', '') | 262 url_template = kwargs.pop(u'url_template', '') |