Jay Lee
ac3dbd25f3
If userid isn't in domain, return blank
2015-12-23 06:32:43 -05:00
Jay Lee
2e6811d2d4
Limit cache filenames to 64 chars to prevent long paths from confusing windows
2015-12-23 06:26:45 -05:00
Jay Lee
61a9d0c0a6
Merge pull request #146 from taers232c/master
...
Global variables update
2015-12-23 06:18:36 -05:00
Ross Scroggs
4cc775bcae
Eliminate try except IndexError in argument parsing
2015-12-22 23:27:42 -08:00
Ross Scroggs
96dfa52dba
Clean up parsing transferSecCals, transferDriveFiles
2015-12-22 22:16:33 -08:00
Ross Scroggs
1f1329c536
Ok, allow gam create admin to take uid: or id:abcdefghi for org unit
2015-12-22 20:41:13 -08:00
Ross Scroggs
3bb54f875d
In gam create admin, org unit id is id:abcdefghj not uid:abcdefhgi
2015-12-22 20:34:42 -08:00
Ross Scroggs
84b6c1cb87
Handle undefined role
2015-12-22 18:15:15 -08:00
Ross Scroggs
4f4bb316d0
Handle invalid argument in gam print admins
2015-12-22 18:09:22 -08:00
Ross Scroggs
fe6430edc6
Global variables do-over
...
Global variables not from environment variables/signal files in
GM_Globals
Global variables from environment variables/signal files in GC_Values
SetGlobalVariables processes all environment variables/signal files
buildGAPIObject reworked
buildGAPIServiceObject reworked
Switch resource calendar processing from GData to GAPI
Implement role assignments
2015-12-22 17:56:37 -08:00
Ross Scroggs
6c421de8c4
Merge remote-tracking branch 'jay0lee/master'
2015-12-22 17:52:31 -08:00
Ross Scroggs
c04ae91dc5
Commit Jay changes
2015-12-22 17:37:56 -08:00
Ross Scroggs
14bc340e56
Commit Jays changes
2015-12-22 17:23:43 -08:00
Ross Scroggs
6fd107c230
CSV debug check inadvertently dropped
2015-12-22 16:39:56 -08:00
Ross Scroggs
5f2c2103a5
Revamp environment variables/signal files processing
...
Global variables not from environment variables/signal files in
GM_Globals
Global variables from environment variables/signal files in GC_Values
SetGlobalVariables processes all environment variables/signal files
buildGAPIObject reworked
buildGAPIServiceObject reworked
Switch resource calendar processing from GData to GAPI
Implement role assignments
2015-12-22 16:10:30 -08:00
Jay Lee
a06828dbcf
Delete messages fixes
...
-catch more unauthorized service account errors
-print which account we're working with before attempting auth and
mailbox search
-soft errors on API call to keep GAM from quiting on mailbox error.
-
2015-12-22 16:42:47 -05:00
Jay Lee
b260cb8f50
add admin commands, upgrade resources to new API, partial text subst. on csv commands
2015-12-22 15:25:58 -05:00
Jay Lee
2fc3355388
Merge pull request #144 from taers232c/master
...
More cleanup
2015-12-21 14:50:37 -05:00
Ross Scroggs
24d5a169f6
Standardize server not found error handling
2015-12-19 16:17:09 -08:00
Ross Scroggs
2bc0dd5fbe
More cleanup
...
Handle debug.gam, extra_args.txt in one place
Clean up coding for callGAPIpages
Simplify coding for disable_ssl_certificate_validation
Break up long arg lists into multiple lines for callGData, callGAPI,
callGAPIpages
Handle missing client_secrets.json inline in doRequestOauth
2015-12-19 16:05:43 -08:00
Jay Lee
d76e5008a7
Merge pull request #134 from taers232c/master
...
Cleanup - use named constants
2015-12-19 06:56:08 -05:00
Ross Scroggs
21f01757a3
Make sure that callGData and callGAPI return something
2015-12-17 17:11:17 -08:00
Ross Scroggs
4da936344f
Downshift more Boolean values
2015-11-24 18:10:23 -08:00
Ross Scroggs
05920cc7d7
Boolean values were not downshifted in doCreateUser
2015-11-24 17:14:37 -08:00
Ross Scroggs
edb17ad06e
Allow reader in doCalendarAddACL, fix infinite loops in doPop, doCreateUser, doUpdateUser
2015-11-24 16:51:06 -08:00
Ross Scroggs
ab6f8fa7bf
Update doVacation
2015-11-22 10:57:00 -08:00
Ross Scroggs
b822608b15
Define/use file processing routines; fix show filelist allfields
...
Define and use new file handling primitives to simply code and isolate
error handling.
Error message cleanup.
Google added a new object (userPermission) to the filesResource object
which broke showDriveFiles because it has an item named 'id' which
wiped out the file id. This fix makes compound column names for all
dictionary objects except for labels.
2015-11-21 09:50:11 -08:00
Ross Scroggs
7a9bda9b1b
Guard vacation info with convertUTF8, fix typo in doGetNotifications
2015-11-19 16:46:16 -08:00
Ross Scroggs
3edfce202f
Cleanup - use named constants
...
Use named constants instead of repeated literals
Define messages at top, would make language translation easier
Clean up result handling in doDownloadActivity/ExportRequest
Handle missing Python SSL module in one place
The following two files need to be updated to 3.61
https://gam-update.appspot.com/latest-version-announcement.txt
https://gam-update.appspot.com/latest-version.txt
2015-11-16 07:13:39 -08:00
Jay Lee
c5b4a822d9
Merge pull request #133 from taers232c/master
...
Cleanup - consolidate redundant code, no functional change
2015-11-15 13:35:48 -05:00
Ross Scroggs
e3ae862732
Cleanup - consolidate redundant code, no functional change
...
Define GAM_URL, GAM_INFO, GAM_RELEASES strings once, use in multiple
places
Simplify getAPIVer, getAPIScope - use dictionaries
Define getServiceFromDiscoveryDocument to replace redundant code
Move tryOAuth/doRequestOAuth calls to commonAppsObjInit
Use dictionaries in appID2app/app2appID
2015-11-15 10:30:46 -08:00
Jay Lee
74b1127f6e
Merge pull request #130 from taers232c/master
...
Apply convertUTF8 to more fields, clean up gam create resource/print resources
2015-11-15 09:30:51 -05:00
Ross Scroggs
2c3f12b38c
Limit pageSize to 100 in doDriveActivity, otherwise backend errors
2015-11-14 12:09:52 -08:00
Ross Scroggs
94ee718aa9
Handle missing emails in courses.
2015-11-12 15:30:15 -08:00
Ross Scroggs
f34620aa73
Fix coding error getting environment variable GAM_AUTOBATCH
2015-11-12 12:40:46 -08:00
Ross Scroggs
a43bb56a43
Real fix to gam create resource
2015-11-11 06:35:50 -08:00
Ross Scroggs
a4ed95b81b
Clean up gam create resource/print resources
...
Add type as a synonym of restype to create to make consistent with
update
Add type to print so that resource type is visible
2015-11-11 06:08:55 -08:00
Ross Scroggs
ddd8348bdd
Apply convertUTF8 to more fields
2015-11-03 10:53:31 -08:00
Jay Lee
d32095f3fe
Merge pull request #128 from taers232c/master
...
GAM 3.62 Bug Fixes, Clean Up
2015-10-30 08:46:02 -04:00
Ross Scroggs
a958bf8be7
Small cleanups
2015-10-29 16:02:24 -07:00
Ross Scroggs
2d643a551c
Use update instead of patch in doUpdateOrg as patch doesn't work
2015-10-28 12:26:32 -07:00
Ross Scroggs
b16d75ec43
Fix .lower where () was missing
2015-10-28 11:54:36 -07:00
Ross Scroggs
f40af555c3
Use os.environ.get, remove try/except
2015-10-28 11:45:40 -07:00
Ross Scroggs
c82672d77b
3.62 Fixes
2015-10-27 18:30:07 -07:00
Jay Lee
867488bf77
Update README.md
2015-10-08 06:41:17 -04:00
Jay Lee
9c485334f1
Update README.md
2015-10-07 08:22:28 -04:00
Ross Scroggs
04ff83fc2d
Correct gam update org <OrgUnit> add cros /all cros
2015-10-05 07:49:10 -07:00
Ross Scroggs
d61e2751ef
Merge remote-tracking branch 'jay0lee/master'
2015-10-05 04:51:39 -07:00
Jay Lee
87b64572db
Merge pull request #124 from taers232c/master
...
Changes to atom/service.py and gdata/service.py to support Domain Shared Contacts
2015-10-05 06:46:34 -04:00
Ross Scroggs
50a33a5083
gdata/service.py change not required
2015-10-04 08:23:00 -07:00