This repository contains server and client code for
the persistent-cal
App Engine application.
The application enables persistent import of an iCalendar feed into a Google Calendar.
For example, events from a TripIt feed can be periodically added to a user's default Google Calendar (perhaps one shared with coworkers or collaborators).
See the about page of the deployed version of this application for more information
-
To update client libraries see Google API Python Client Wiki.
-
To debug cron jobs (I had to while dealing with the fix in c9ca6f9):
from google.appengine.api import urlfetch from scripts.persistent_cal import APIAuthManager auth_manager = APIAuthManager(raw_input('Email address: ')) application_auth = auth_manager.GetApplicationAuth() cookie_header = 'ACSID=%s' % application_auth url = 'http://persistent-cal.appspot.com/cron-weekly' result = urlfetch.fetch( url=url, method=urlfetch.GET, headers={'Cookie': cookie_header, 'X-AppEngine-Cron': 'true'}) url = 'http://persistent-cal.appspot.com/cron-monthly' result = urlfetch.fetch( url=url, method=urlfetch.GET, headers={'Cookie': cookie_header, 'X-AppEngine-Cron': 'true'})
-
To PyLint the source code set these in the
bash
shell:$ APPENGINE_PATH="$(readlink `which appcfg.py` | xargs dirname)"; $ WEBAPP2_PATH="$APPENGINE_PATH/lib/webapp2"; $ PYTHONPATH=$PYTHONPATH:$APPENGINE_PATH:$WEBAPP2_PATH pylint \ --rcfile=pylintrc library.py
-
To add
google-api-python-client
, runsetup_dependencies.py
. This file will reflect the "latest" instructions from the client library documentation. -
The version of
gae-pytz
insetup_dependcies.py
reflects the "latest" from PyPI. -
The version of
icalendar
insetup_dependcies.py
reflects the "latest" from PyPI.
NOTE: Repository was previously hosted on Google Code Hosting.