# HG changeset patch # User Paul Boddie # Date 1411563528 -7200 # Node ID 4cd247d490299b718a5cbca518624b81565c83c5 # Parent 63937ac3d03c8f541571b4aef34378204ddf1801 Use of section names when converting from the hierarchical items representation should not be required. diff -r 63937ac3d03c -r 4cd247d49029 imip_agent.py --- a/imip_agent.py Wed Sep 24 13:16:49 2014 +0200 +++ b/imip_agent.py Wed Sep 24 14:58:48 2014 +0200 @@ -7,7 +7,7 @@ from email.mime.text import MIMEText from pytz import timezone, UnknownTimeZoneError from smtplib import SMTP -from vCalendar import parse, ParseError, SECTION_TYPES +from vCalendar import parse, ParseError import imip_store import re import sys @@ -69,7 +69,7 @@ for name, attr, value in elements: if not d.has_key(name): d[name] = [] - if name in SECTION_TYPES: + if isinstance(value, list): d[name].append((get_itip_structure(value), attr)) else: d[name].append((value, attr))