From e7e653d395dd4161fecf941bee16283f9e7f1597 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 1 Feb 2024 13:28:43 -0800 Subject: [PATCH] Updated `` to allow multiple `tdshare commenter|reader|writer` options. --- docs/GamUpdates.md | 41 +++++++++++++++++ docs/How-to-Upgrade-from-Standard-GAM.md | 4 +- docs/Todrive.md | 4 +- docs/Users-Calendars-Events.md | 17 ++++--- docs/Users-Gmail-Delegates.md | 3 +- docs/Version-and-Help.md | 12 ++--- src/GamCommands.txt | 2 +- src/GamUpdate.txt | 4 ++ src/gam/__init__.py | 58 ++++++++++++------------ 9 files changed, 99 insertions(+), 46 deletions(-) diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 964f1715..4a635dec 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -11,6 +11,47 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation +### 6.67.32 + +Updated `` to allow multiple `tdshare commenter|reader|writer` options. + +### 6.67.31 + +Updated `gam claim|transfer ownership ` to properly +handle the case where `` referencess a Drive shortcut. + +### 6.67.30 + +Fixed bug where the `fullpath` option in various commands was not converting the generic shared drive name `Drive` to the drive's actual name. + +### 6.67.29 + +Added optional argument `owneraccess` to `gam courses remove teachers|students [owneracccess] remove teacher|student [owneraccess] ` in order to test a possible API change. + +Updated code to avoid a trap when `gam config auto_batch_min 1 csv file.csv gam ...` was entered. +The `config auto_batch_min 1` is not appropriate in this context and will be ignored. + +### 6.67.28 + +Improved handling of `Bad Request` error in `gam collect orphans`. + +### 6.67.27 + +Updated `gam collect orphans` to handle the following error: +``` +ERROR: 400: badRequest - Bad Request +``` + +### 6.67.26 + +Fixed bug in `gam print vaultexports ... formatjson` that caused a trap. + +### 6.67.25 + +Added option `owneraccess` to `gam info courses ` and `gam info course ` in order +to test a possible API change. + ### 6.67.24 Fixed bug that caused HTML password notification email messages to be displayed in raw form. diff --git a/docs/How-to-Upgrade-from-Standard-GAM.md b/docs/How-to-Upgrade-from-Standard-GAM.md index b0876a3b..8f54c310 100644 --- a/docs/How-to-Upgrade-from-Standard-GAM.md +++ b/docs/How-to-Upgrade-from-Standard-GAM.md @@ -334,7 +334,7 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAMADV-XTD3 6.67.24 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.67.32 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.1 64-bit final MacOS Sonoma 14.2.1 x86_64 @@ -1002,7 +1002,7 @@ writes the credentials into the file oauth2.txt. C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt C:\GAMADV-XTD3>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAMADV-XTD3 6.67.24 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.67.32 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs Python 3.12.1 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/docs/Todrive.md b/docs/Todrive.md index 1ef95688..af0b73f9 100644 --- a/docs/Todrive.md +++ b/docs/Todrive.md @@ -186,7 +186,7 @@ direct the uploaded file to a particular user and location and add a timestamp t (tdnoescapechar [])| (tdparent (id:)|)| (tdretaintitle [])| - (tdshare commenter|reader|writer)| + (tdshare commenter|reader|writer)*| (tdsheet (id:)|)| (tdsheettimestamp [] [tdsheettimeformat ]) (tdsheettitle )| @@ -213,7 +213,7 @@ It is uploaded to the root folder of the admin user named in `oauth2.txt`. ## Create new file If `tdfileid ` is not specified, a new file is created. * `tdparent` - An existing/writable parent folder for the uploaded file; if not specified, the `todrive_parent` value from gam.cfg is used; that value defaults to the root folder. -* `tdshare commenter|reader|writer` - Share the new file with `` with the specified role. `` must be valid within your Google Workspace. +* `tdshare commenter|reader|writer` - Share the new file with `` with the specified role. `` must be valid within your Google Workspace. You can specify multiple shares. ## File name, file description and sheet name * `tdtitle` - The title for the uploaded file, if not specified, the Gam default title is used. diff --git a/docs/Users-Calendars-Events.md b/docs/Users-Calendars-Events.md index 56ff4ebe..627f0b25 100644 --- a/docs/Users-Calendars-Events.md +++ b/docs/Users-Calendars-Events.md @@ -713,12 +713,14 @@ The attendee changes are displayed but not processed unless `doit` is specified. ## Manage focus time events You can create and delete focus time events; they can not be updated. -To update a working location event, delete the working location event and recreate it. +To update a focus time event, delete the focus time event and recreate it. ``` gam create focustime [chatstatus available|donotdisturb]| [declinemode none|all|new] [declinemessage ]| - (timerange