in libs/google/calendar.py [0:0]
def move_calendar_ownership(self, owner_calendar_id):
acl = {
"kind": "calendar#aclRule",
"scope": {
"type": "user",
"value": owner_calendar_id
},
"role": "owner"
}
try:
r = json.loads(self.call_google_api(service=self.service,
api_resource="acl",
api_method="insert",
response_field=None,
calendarId="primary",
body=acl))
return r
except(ValueError, KeyError, TypeError):
return None