Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_event.py @ 2616:1cc88adb5142
plugin events: invitations improvments + personal list
- added invitation by <message> mechanism
- added a personal list in PEP which keep events created by user, or in which she has been invited
- new bridge methods: eventsList, and eventInviteByEmail. eventInvite is now used to invite a entity by jid (not email like before)
- on invite, an invitation message is send to invitee's jid
- when an invitation message is received, event is automatically linked in personal list
- when creating a new event, event is automatically linked in personal list
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Jun 2018 01:21:44 +0200 |
parents | a5b96950b81a |
children | 56f94936df1e |
comparison
equal
deleted
inserted
replaced
2615:b4ecbcc2fd08 | 2616:1cc88adb5142 |
---|---|
381 | 381 |
382 def start(self): | 382 def start(self): |
383 email = self.args.email[0] if self.args.email else None | 383 email = self.args.email[0] if self.args.email else None |
384 emails_extra = self.args.email[1:] | 384 emails_extra = self.args.email[1:] |
385 | 385 |
386 self.host.bridge.eventInvite( | 386 self.host.bridge.eventInviteByEmail( |
387 self.args.service, | 387 self.args.service, |
388 self.args.node, | 388 self.args.node, |
389 self.args.item, | 389 self.args.item, |
390 email, | 390 email, |
391 emails_extra, | 391 emails_extra, |