Hi,

Below is the code (part of the code) I'm trying on IronPython , I
can't understand why it can't delete the entries and yet it doesn't
give error. The next time I run the code again, it will list down the
same entries, which shouldn't be the case, if the previous run/attempt
to delete the entries succeeded. To make the matter worst, I already
deleted the entries on Web UI, but still the code list and attempts to
delete the entries. Btw, the entries I'm trying to delete is from a
non-primary calendar. But, rest assured direction was followed on
which feedUri is to used.

anyway, here's the feedUri or XML URL

http://www.google.com/calendar/feeds/some_text_here%40group.calendar.google.com/private/full



def retridel(mycalsvc,myURL):

    myQuery = GDCal.EventQuery(myURL)
    myQuery.StartDate = DateTime.Today
    myQuery.EndDate = myQuery.StartDate.AddHours(23)

    print "StartDate: %s" % myQuery.StartDate.ToString()
    print "EndDate: %s" % myQuery.EndDate.ToString()
    myevFeed = mycalsvc.Query(myQuery)
    print type(myevFeed)

    if myevFeed.Entries.Count > 0:
        for myentry in myevFeed.Entries:


            try:
                print myentry.Title.Text
                myentry.Delete
                print "deleted\n"

            except:
                print "Delete Err\n"
                pass
    else:
        pass
        print "no encounter"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to