Commit Graph

4598 Commits

Author SHA1 Message Date
2cdcc6f5ad gam-install.sh fix for Ubuntu 16+ where python 2 not always present 2016-11-10 20:28:48 -05:00
3699e0199b mktemp fix to run on OS X 10.10 2016-11-08 22:02:20 -05:00
5ec417d50c Validate full email address on gam oauth create <EmailAddress> (#321)
* Validate full email address on gam oauth create <EmailAddress>

* Update documentation
2016-11-08 16:32:38 -05:00
240edd6812 Simplify doCheckServiceAccount (#320)
* Simplify doCheckServiceAccount

* Further simplify doCheckServiceAccount

List of scopes is all we need

* Build all_scopes list outside of loop, sort once

* Leave use_scopes in buildGAPIServiceObject for future use
2016-11-08 10:33:35 -05:00
faa1b87926 Merge branch 'master' of https://github.com/jay0lee/GAM 2016-11-07 12:23:09 -05:00
08a9764465 delete projects (undocumented), catch API ToS errors and try to point admin to correct URL before retrying. 2016-11-07 12:22:54 -05:00
e3a73ce7d1 Process NLs in user structured/formatted addresses (#319) 2016-11-07 10:40:04 -05:00
d75a5e78a5 Have doCreateProject find proper JSON files (#318)
As in https://github.com/jay0lee/GAM/pull/313, factor in the user's
environment variables. On a new installation, the files will be in GAM
Path, but on an existing installation the environment variables may
have them located somewhere else.
2016-11-07 10:21:55 -05:00
6a179215d6 sendNotifications = None 2016-11-05 20:14:05 -04:00
c2dc2f0712 Fixes/Updates (#317)
GamCommands.txt
Update documentation

gam.py
doCheckServiceAccount
Correct my previous update - Lines 1211/1241

doCalendarDeleteEvent:
Eliminate duplicate events - Line 3337
Fix error message - LInes 3344/2245
Pass sendNotifications to API - LInes 3323,3349

doCalendarAddEvent
Update error message - LIne 3461

doGetCrosInfo
Add query capability - Lines 7992/8078
2016-11-05 20:12:51 -04:00
b6b6824ee1 whatsnew for 4.02 v4.02 2016-11-04 14:25:59 -04:00
2902fc8931 Merge branch 'master' of https://github.com/jay0lee/GAM 2016-11-04 14:14:27 -04:00
1a6ec398b2 gam calendar <> deleteevent 2016-11-04 14:14:21 -04:00
7d849e0cc0 Code fixes, cleanup (#315)
* Code fixes, cleanup

Fix doCheckServiceAccount to pass correct api to buildGAPIServiceObject
pylint cleanup
Simplify passing login_hint to doRequestOAuth in main
Give error if invalid argument after gam <users> check

* Fix error

* Use try accept
2016-11-04 14:13:39 -04:00
2958bd9f86 GAM 4.02 2016-11-04 12:02:35 -04:00
15d93c9e5d pause at end of gam-setup.bat 2016-11-04 11:48:10 -04:00
082c34b453 prompt for regular user to test service account. 2016-11-04 11:39:20 -04:00
32e7932050 fix potential IndexError 2016-11-03 14:42:07 -04:00
6becd08f3c fix login_hint issues 2016-11-03 14:30:14 -04:00
26fbf9c524 don't run setup on upgrades 2016-11-03 14:20:15 -04:00
d9124f3ffa Fix doRequestOAuth to find proper client secrets JSON file (#313)
The environment variables GAMUSERCONFIGDIR and CLIENTSECRETS are
factored in to GC_Values[GC_CLIENT_SECRETS_JSON]. On a new
installation, it will have the value
os.path.join(GM_Globals[GM_GAM_PATH], FN_CLIENT_SECRETS_JSON) but on an
existing installation the environment variables may have it located
somewhere else.
2016-11-03 13:50:43 -04:00
aa1db89bd3 include gam-setup.bat in MSI and zip. Call it from MSI at end of install. 2016-11-03 13:29:26 -04:00
ff3a8644ec Merge branch 'master' of https://github.com/jay0lee/GAM 2016-11-03 12:49:32 -04:00
4721469b1d prettify oauth2.txt 2016-11-03 12:49:19 -04:00
c4a3d29964 Easier to copy scope list 2016-11-03 12:48:46 -04:00
1454526e65 gam-setup.bat file to automate Windows setup
part of #309
2016-11-03 11:38:23 -04:00
2c0026512d Fix doGamVersion (#311)
* Fix doGamVersion

doGamVersion is called by showUsage with checkForArgs=False to keep
doGamVersion from wandering through some other command’s arguments

* Update documentation

* Further doGamVersion cleanup

Allow simple and check, keep pylint happy

* gam version simple is script only option, not exposed to user
2016-11-02 17:30:54 -04:00
3c85da292e GAM 4.01 v4.01 2016-11-02 15:28:15 -04:00
c7b5251b03 prompt for admin email and use as hint 2016-11-02 15:23:43 -04:00
5307a560bd fix service account create call 2016-11-02 14:45:17 -04:00
059e6a1813 fix gam version v4.0 2016-11-02 13:30:42 -04:00
395a561b8c GAM v4.0 2016-11-02 13:17:44 -04:00
6c3a744ed3 improve project create instructions. 2016-11-02 13:15:10 -04:00
907126d642 gam version simple, save project files to GAM path 2016-11-02 12:59:38 -04:00
9e4506141e add message to restart term 2016-11-02 12:43:40 -04:00
5deac72484 authorize admin and check service account 2016-11-02 11:40:00 -04:00
9def6e6d73 run alias command. 2016-11-02 11:02:11 -04:00
fefe9de384 further improvements to scope check. 2016-11-02 10:20:27 -04:00
f8341be9ea add statement about extract starting. 2016-11-02 09:47:12 -04:00
3c50f464cc add -p argument to disable profile update 2016-11-02 09:33:46 -04:00
6961a0e1b3 more details on check serviceaccount 2016-11-01 22:32:33 -04:00
3fa6cde6b0 another change to improve missing scope errors 2016-11-01 22:23:34 -04:00
4129e05f5e check serviceaccount command, better error on missing service scopes 2016-11-01 22:13:45 -04:00
42137297a1 extra space 2016-11-01 12:17:46 -04:00
bc64e9a67c fix color escaping on MacOS 2016-11-01 12:16:49 -04:00
e1ec8b8649 fix color function calls 2016-11-01 12:07:51 -04:00
b9ec06807b message color and more error checking. 2016-11-01 12:01:33 -04:00
e3d826cdb3 catch tar errors and exit. 2016-11-01 11:53:30 -04:00
4306dba9f1 Merge branch 'master' of https://github.com/jay0lee/GAM 2016-11-01 11:44:30 -04:00
cf397c228c MacOS >= 10.10 please 2016-11-01 11:44:05 -04:00