```
$ gam calendar testsimple@rdschool.org addevent start 2020-05-17T08:00:00-07:00 end 2020-05-17T09:00:00-07:00 recurrence "RRULE:FREQ=WEEKLY;WKST=SU;COUNT=13;BYDAY=MO" summary "Monday Morning Meeting"
Traceback (most recent call last):
File "/Users/Ross/Documents/GoogleApps/GAMO/gam.py", line 11, in <module>
main(sys.argv)
File "/Users/Ross/Documents/GoogleApps/GAMO/gam/__main__.py", line 45, in main
sys.exit(gam.ProcessGAMCommand(sys.argv))
File "/Users/Ross/Documents/GoogleApps/GAMO/gam/__init__.py", line 14413, in ProcessGAMCommand
gapi_calendar.addOrUpdateEvent('add')
File "/Users/Ross/Documents/GoogleApps/GAMO/gam/gapi/calendar.py", line 350, in addOrUpdateEvent
sendUpdates, body = getEventAttributes(i, calendarId, cal, body, action)
File "/Users/Ross/Documents/GoogleApps/GAMO/gam/gapi/calendar.py", line 537, in getEventAttributes
if not timeZone:
UnboundLocalError: local variable 'timeZone' referenced before assignment
```
* Update gam report usageparamaters to account for Google API change
* Use _check_full_data_available in report usageparameters
* Code cleanup
* Code cleanup part 2
* Code cleanup part 3
My apologies. I fixed my version, then added the code in your __init__.py to loop and wait for the not found error to disappear. By then, however, the error stopped occurring and I didn't notice that errors.py wasn't recognizing the error.
Automatic fixes produced by yapf formatting using `--style=google`, as
well as common pre-commit checks such as trailing whitespace removal,
double quote fixer, and newlines at the end of a file.
* invalid_grant: The account has been deleted - Recently deleted, still exists
* invalid_request: Invalid impersonation "sub" field - Long gone
Adds a pre-commit config for development that runs several fixers, including YAPF with
"google" style and pylint for static analysis.
Use of `requirements-dev.txt` appears to be a common pattern for this
type of work:
https://pypi.org/project/requirements-dev.txt/
* Refactor into a python module format
-Updates import statements to be absolute vs implicitly relative
-Uses import syntax that minimizes the need to update references in code
and/or reformat affected lines (e.g. `import gapi.directory` becomes `from gam.gapi import directory as
gapi_directory`)
-Adds a `__main__.py` such that the module can be executed on its own
using standard `python3 -m gam` syntax
-Replaces __main__ import hack with module import
-Updates the GAM path to be the module's parent dir
* Add gam.py to /src for backwards compatibility
A stub that calls gam.__main__.main() to be used by users who are not
with the syntax of calling a module implementation. It should also
provide immediate backwards-compatibility with existing scripts with
references to this file.
* Move build tools back to the main dir and out of the package
* Fix pylint errors
* Update build spec to use new package format
Incorporates @jay0lee's patch from
https://github.com/jay0lee/GAM/pull/1165#issuecomment-618430828
Add date range to skipdates
Make report name match dates; indicate if no data
If only enddate is specified change time period
current: now-1 month to enddate
improved: enddate-1 month to enddate