Subject: | Workaround for bug 32731 |
Date: | Fri, 29 Feb 2008 11:16:54 -0700 |
To: | bug-Net-Google-Calendar [...] rt.cpan.org |
From: | David Litster <dlitster [...] clusterresources.com> |
Confirmed deletion bug using Net::Google::Calendar to delete an event
that already exists.
Perl: v5.8.8 on Ubuntu 7.10
Error Message:
Can't locate object method "as_xml" via package
"http://www.google.com/calendar/feeds/XXXXXXXXXXXXXXXXXXXXXXXXXXX%
40group.calendar.google.com/private/full/XXXXXXXXXXXXXXXXX" (perhaps you
forgot to load
"http://www.google.com/calendar/feeds/XXXXXXXXXXXXXXXXXXXXXXXXXX%
40group.calendar.google.com/private/full/XXXXXXXXXXXXXXXXXXXXXXXX"?)
at /usr/local/share/perl/5.8.8/Net/Google/Calendar.pm line 657.
Workaround: Add an extra parameter to delete_entry()
Show quoted text
>From the example on:
http://search.cpan.org/~simonw/Net-Google-Calendar-0.3/lib/Net/Google/Calendar.pm#delete_entry_%3CNet::Google::Calendar::Entry%3E
$cal->delete_entry($tmp) || die "Couldn't delete ".$tmp->id.": $@\n";
can be called as:
$cal->delete_entry($tmp, 1)
and it works.
I am guessing that
my $force = pop @_ || 0;
my $url = $entry->edit_url($force) || return undef;
on line 492 in delete_entry() is borking it, but I'm no expert.
Thanks for this great module!