Skip Menu |

This queue is for tickets about the Data-ICal CPAN distribution.

Report information
The Basics
Id: 80200
Status: open
Priority: 0/
Queue: Data-ICal

People
Owner: Nobody in particular
Requestors: dinatural [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Data::Ical
Date: Sun, 14 Oct 2012 15:22:22 -0400
To: jesse [...] bestpractical.com
From: Dino Trudel <dinatural [...] gmail.com>
Hi there, I'm sorry if this is not the right address to send this question, please redirect me to the proper forum if not... I've been using Data::Ical to modify Ical Events to add properties successfully for a while, now I'd like to remove stuff (attachments or the ATTACH properties) but I can't see in the doc how to do that except setting empty ATTACH values, which seems like not the right way to do... What would be the best way? Thanks in advance
On Mon Oct 15 13:19:49 2012, dinatural@gmail.com wrote: Show quoted text
> I've been using Data::Ical to modify Ical Events to add properties > successfully for a while, now I'd like to remove stuff (attachments or the > ATTACH properties) but I can't see in the doc how to do that except setting > empty ATTACH values, which seems like not the right way to do...
Unfortunately there's no API for removing properties. Short of writing a patch for that API (which we'd certainly consider if you submitted one), I see two solutions: 1) Rebuild new Data::ICal and entry objects, skipping entries/properties you don't want 2) or be a bit naughty and modify the entry object's internals directly: delete $entry->properties->{attach}; All property names are lowercased before being set internally. I'll leave this report as a "wishlist" item.