2014-03-08 22:36:25 +01:00
|
|
|
from django.shortcuts import redirect
|
2014-04-19 20:36:01 +02:00
|
|
|
from eventplanner_gcal.models import syncGCalEvents, syncParticipationFromGoogleToLocal
|
2014-03-08 22:36:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
def runSync( request ):
|
|
|
|
syncGCalEvents()
|
|
|
|
return redirect("/")
|
|
|
|
|
2014-04-19 20:36:01 +02:00
|
|
|
|
|
|
|
def gcalApiCallback( request ):
|
|
|
|
syncParticipationFromGoogleToLocal()
|
|
|
|
print ( "gcalApiCallback called" )
|
|
|
|
return redirect("/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|