mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
gam transfer calendars removed
This commit is contained in:
@@ -53237,11 +53237,13 @@ def _processCalendarList(user, i, count, calId, j, jcount, cal, function, **kwar
|
|||||||
try:
|
try:
|
||||||
callGAPI(cal.calendarList(), function,
|
callGAPI(cal.calendarList(), function,
|
||||||
throwReasons=[GAPI.NOT_FOUND, GAPI.DUPLICATE, GAPI.UNKNOWN_ERROR,
|
throwReasons=[GAPI.NOT_FOUND, GAPI.DUPLICATE, GAPI.UNKNOWN_ERROR,
|
||||||
GAPI.CANNOT_CHANGE_OWN_ACL, GAPI.CANNOT_CHANGE_OWN_PRIMARY_SUBSCRIPTION],
|
GAPI.CANNOT_CHANGE_OWN_ACL, GAPI.CANNOT_CHANGE_OWN_PRIMARY_SUBSCRIPTION,
|
||||||
|
GAPI.CANNOT_UNSUBSCRIBE_FROM_OWNED_CALENDAR],
|
||||||
**kwargs)
|
**kwargs)
|
||||||
entityActionPerformed([Ent.USER, user, Ent.CALENDAR, calId], j, jcount)
|
entityActionPerformed([Ent.USER, user, Ent.CALENDAR, calId], j, jcount)
|
||||||
except (GAPI.notFound, GAPI.duplicate, GAPI.unknownError, GAPI.serviceNotAvailable,
|
except (GAPI.notFound, GAPI.duplicate, GAPI.unknownError, GAPI.serviceNotAvailable,
|
||||||
GAPI.cannotChangeOwnAcl, GAPI.cannotChangeOwnPrimarySubscription) as e:
|
GAPI.cannotChangeOwnAcl, GAPI.cannotChangeOwnPrimarySubscription,
|
||||||
|
GAPI.cannotUnsubscribeFromOwnedCalendar) as e:
|
||||||
entityActionFailedWarning([Ent.USER, user, Ent.CALENDAR, calId], str(e), j, jcount)
|
entityActionFailedWarning([Ent.USER, user, Ent.CALENDAR, calId], str(e), j, jcount)
|
||||||
except GAPI.notACalendarUser:
|
except GAPI.notACalendarUser:
|
||||||
userCalServiceNotEnabledWarning(user, i, count)
|
userCalServiceNotEnabledWarning(user, i, count)
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ CANNOT_SHARE_GROUPS_WITHLINK = 'cannotShareGroupsWithLink'
|
|||||||
CANNOT_SHARE_USERS_WITHLINK = 'cannotShareUsersWithLink'
|
CANNOT_SHARE_USERS_WITHLINK = 'cannotShareUsersWithLink'
|
||||||
CANNOT_SHARE_TEAMDRIVE_TOPFOLDER_WITH_ANYONEORDOMAINS = 'cannotShareTeamDriveTopFolderWithAnyoneOrDomains'
|
CANNOT_SHARE_TEAMDRIVE_TOPFOLDER_WITH_ANYONEORDOMAINS = 'cannotShareTeamDriveTopFolderWithAnyoneOrDomains'
|
||||||
CANNOT_SHARE_TEAMDRIVE_WITH_NONGOOGLE_ACCOUNTS = 'cannotShareTeamDriveWithNonGoogleAccounts'
|
CANNOT_SHARE_TEAMDRIVE_WITH_NONGOOGLE_ACCOUNTS = 'cannotShareTeamDriveWithNonGoogleAccounts'
|
||||||
|
CANNOT_UNSUBSCRIBE_FROM_OWNED_CALENDAR = 'cannotUnsubscribeFromOwnedCalendar'
|
||||||
CANNOT_UPDATE_PERMISSION = 'cannotUpdatePermission'
|
CANNOT_UPDATE_PERMISSION = 'cannotUpdatePermission'
|
||||||
CONDITION_NOT_MET = 'conditionNotMet'
|
CONDITION_NOT_MET = 'conditionNotMet'
|
||||||
CONFLICT = 'conflict'
|
CONFLICT = 'conflict'
|
||||||
@@ -435,6 +436,8 @@ class cannotShareTeamDriveTopFolderWithAnyoneOrDomains(Exception):
|
|||||||
pass
|
pass
|
||||||
class cannotShareTeamDriveWithNonGoogleAccounts(Exception):
|
class cannotShareTeamDriveWithNonGoogleAccounts(Exception):
|
||||||
pass
|
pass
|
||||||
|
class cannotUnsubscribeFromOwnedCalendar(Exception):
|
||||||
|
pass
|
||||||
class cannotUpdatePermission(Exception):
|
class cannotUpdatePermission(Exception):
|
||||||
pass
|
pass
|
||||||
class conditionNotMet(Exception):
|
class conditionNotMet(Exception):
|
||||||
@@ -730,6 +733,7 @@ REASON_EXCEPTION_MAP = {
|
|||||||
CANNOT_SHARE_USERS_WITHLINK: cannotShareUsersWithLink,
|
CANNOT_SHARE_USERS_WITHLINK: cannotShareUsersWithLink,
|
||||||
CANNOT_SHARE_TEAMDRIVE_TOPFOLDER_WITH_ANYONEORDOMAINS: cannotShareTeamDriveTopFolderWithAnyoneOrDomains,
|
CANNOT_SHARE_TEAMDRIVE_TOPFOLDER_WITH_ANYONEORDOMAINS: cannotShareTeamDriveTopFolderWithAnyoneOrDomains,
|
||||||
CANNOT_SHARE_TEAMDRIVE_WITH_NONGOOGLE_ACCOUNTS: cannotShareTeamDriveWithNonGoogleAccounts,
|
CANNOT_SHARE_TEAMDRIVE_WITH_NONGOOGLE_ACCOUNTS: cannotShareTeamDriveWithNonGoogleAccounts,
|
||||||
|
CANNOT_UNSUBSCRIBE_FROM_OWNED_CALENDAR: cannotUnsubscribeFromOwnedCalendar,
|
||||||
CANNOT_UPDATE_PERMISSION: cannotUpdatePermission,
|
CANNOT_UPDATE_PERMISSION: cannotUpdatePermission,
|
||||||
CONDITION_NOT_MET: conditionNotMet,
|
CONDITION_NOT_MET: conditionNotMet,
|
||||||
CONFLICT: conflict,
|
CONFLICT: conflict,
|
||||||
|
|||||||
Reference in New Issue
Block a user