summaryrefslogtreecommitdiffstats
path: root/wallace/module_resources.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-05-17 10:18:29 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-05-17 10:18:29 +0200
commit0b750201a4e75488f72b0850d8351c7db8039de4 (patch)
tree58cc575c4b9d34cfea77458514836228c1d77ae6 /wallace/module_resources.py
parent4a51c002a4372b267f4ba31040b82d5f844c8c96 (diff)
downloadpykolab-0b750201a4e75488f72b0850d8351c7db8039de4.tar.gz
Better detect resource collections who already delegated the event.
Rebase D611 by @fjl
Diffstat (limited to 'wallace/module_resources.py')
-rw-r--r--wallace/module_resources.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index 7509efd..93d0b4e 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -324,7 +324,11 @@ def execute(*args, **kw):
continue
# ignore updates and cancellations to resource collections who already delegated the event
- if len(receiving_attendee.get_delegated_to()) > 0 or receiving_attendee.get_role() == kolabformat.NonParticipant:
+ att_delegated = (len(receiving_attendee.get_delegated_to()) > 0)
+ att_nonpart = (receiving_attendee.get_role() == kolabformat.NonParticipant)
+ att_rsvp = receiving_attendee.get_rsvp()
+
+ if (att_delegated or att_nonpart) and not att_rsvp:
done = True
log.debug(_("Recipient %r is non-participant, ignoring message") % (receiving_resource['mail']), level=8)