Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Breaks with python-vobject 0.6.6 #228
I guess we don't strictly have to fix this until we upgrade the version of vobject we use, but we probably should get on this before a possibly small bug becomes a possibly bigger one.
jeffrey@… originally submitted this as comment:3:ticket:287
I'm sorry, I could've sworn I sent an email about this change to Cyrus, but looking back at my sent mail it looks like I didn't.
vobject uses lists for pretty much everything, including parameters. It was a bug (that was causing exceptions in certain use cases) that X-VOBJ-ORIGINAL-TZID was being stored as a plain value, not a single-valued-list.
I was going to say: to fix this, use getattr(property, 'x_vobj_original_tzid_param', None) instead of property.params().get()
but I'm not sure what's going on with params being a function. So alternately, do property.params().get('X-VOBJ-ORIGINAL-TZID', [None])