GCal Mapping: Callback mechanism using channels

This commit is contained in:
Martin Bauer
2014-04-19 20:36:01 +02:00
committed by Martin Bauer
parent ba0cde09c1
commit fcb04058b5
16 changed files with 185 additions and 45 deletions

View File

@@ -0,0 +1,9 @@
from django.core.management.base import NoArgsCommand
from eventplanner_gcal.signals import checkGCalSubscription
class Command(NoArgsCommand):
help = 'Checks if the GCal notification channel is still active'
def handle_noargs(self, **options):
print ( "Checking Subscription")
checkGCalSubscription()

View File

@@ -1,5 +1,5 @@
from django.core.management.base import NoArgsCommand
from eventplanner_gcal.models import deleteAllGCalEvents
from eventplanner_gcal.signals import deleteAllGCalEvents
class Command(NoArgsCommand):
help = 'Delete all events in the google calendar created by this app'

View File

@@ -0,0 +1,8 @@
from django.core.management.base import NoArgsCommand
from eventplanner_gcal.signals import stopAllGCalSubscriptions
class Command(NoArgsCommand):
help = 'Stops all GCal subscriptions'
def handle_noargs(self, **options):
stopAllGCalSubscriptions()

View File

@@ -1,6 +1,6 @@
from django.core.management.base import NoArgsCommand
from eventplanner_gcal.models import syncGCalEvents
from eventplanner_gcal.signals import syncGCalEvents
class Command(NoArgsCommand):
help = 'Synchronize Google Calendar with locally stored Events'