4e2f65e3b12147e705f929e5f2569212670c3b1f
[kiosk.git] / gcal_trigger.py
1 import constants
2 import globals
3 import trigger
4
5 class gcal_trigger(trigger.trigger):
6     def get_triggered_page_list(self):
7         if globals.get("gcal_triggered") == True:
8             print "****** gcal has an imminent upcoming event. ******"
9             return (constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)
10         else:
11             return None
12
13 #globals.put('gcal_triggered', True)
14 #x = gcal_trigger()
15 #x.get_triggered_page_list()