Subject: | Net::Google::Calendar::WebContent should accept more types |
Date: | Wed, 19 Dec 2007 09:11:26 -0800 |
To: | Bugs in Net-Google-Calendar via RT <bug-Net-Google-Calendar [...] rt.cpan.org> |
From: | James Wright <jamesw [...] bsdhosting.co.za> |
in Net/Google/Calendar/WebContent.pm:
sub _set_type {
my $self = shift;
my $type = shift;
unless ($type eq 'text/html' or $type =~ m!^image/!) {
die "The type param must be text/html or image/*\n";
}
$self->type($type);
}
But in the API documentation:
http://code.google.com/apis/calendar/developers_guide_protocol.html#CreatingGadgets
To create a Calendar Gadget that displays a Google Gadget, create an
event entry with a web content link again, but this time the type should
be |application/x-google-gadgets+xml|. You'll also need to get the
gadget's URL from the Google Gadget Directory
<http://www.google.com/ig/directory>. This example configures a Calendar
Gadget to display the DateTime gadget and specifies the appropriate user
preferences.