def _UpdateCalendar(self, calendar, title='New Title', color=None):
    print 'Updating the calendar titled "%s" with the title "%s"' % (
        calendar.title.text, title)
    calendar.title = atom.Title(text=title)
    if color is not None:
      calendar.color = gdata.calendar.Color(value=color)

    updated_calendar = self.cal_client.UpdateCalendar(calendar=calendar) 
    return updated_calendar
Updates the title and, optionally, the color of the supplied calendar
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/samples/calendar/calendarExample.py/CalendarExample._UpdateCalendar