Changeset View
Changeset View
Standalone View
Standalone View
wallace/module_invitationpolicy.py
Show First 20 Lines • Show All 1,268 Lines • ▼ Show 20 Lines | else: | ||||
'start': xmlutils.property_to_string('start', object.get_start()), | 'start': xmlutils.property_to_string('start', object.get_start()), | ||||
'organizer': orgname if orgname else orgemail | 'organizer': orgname if orgname else orgemail | ||||
} | } | ||||
if deleted: | if deleted: | ||||
message_text += " " + _("The copy in your calendar has been removed accordingly.") | message_text += " " + _("The copy in your calendar has been removed accordingly.") | ||||
else: | else: | ||||
message_text += " " + _("The copy in your calendar has been marked as cancelled accordingly.") | message_text += " " + _("The copy in your calendar has been marked as cancelled accordingly.") | ||||
if object.get_recurrence_id(): | |||||
message_text += "\n" + _("NOTE: This cancellation only refers to this single occurrence!") | |||||
message_text += "\n\n" + _("*** This is an automated message. Please do not reply. ***") | message_text += "\n\n" + _("*** This is an automated message. Please do not reply. ***") | ||||
# compose mime message | # compose mime message | ||||
msg = MIMEText(utils.stripped_message(message_text), _charset='utf-8') | msg = MIMEText(utils.stripped_message(message_text), _charset='utf-8') | ||||
msg['To'] = receiving_user['mail'] | msg['To'] = receiving_user['mail'] | ||||
msg['Date'] = formatdate(localtime=True) | msg['Date'] = formatdate(localtime=True) | ||||
msg['Subject'] = utils.str2unicode(_('"%s" has been cancelled') % (object.get_summary())) | msg['Subject'] = utils.str2unicode(_('"%s" has been cancelled') % (object.get_summary())) | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |