+ #Check subscribed events
+ if (Temp == "initialize" or Temp == "installed"):
+ Temp = GetToken(F)
+ Temp = GetToken(F)
+ Temp = GetToken(F)
+ # If it is a schedule function, then extract the scheduled method and put it as one of the events
+ if (Temp == "schedule"):
+ eventList.append("schedule")
+ if (appName == "App1"):
+ eventAppList.append("App1")
+ else:
+ eventAppList.append("App2")
+ while Temp != ",":
+ Temp = GetToken(F)
+ Temp = GetToken(F)
+ # If this is a " then get the next one still---we are interested in the scheduled function name
+ if (Temp == "\""):
+ Temp = GetToken(F)
+ # Insert function name into the map
+ if "schedule" in eventVarMap.keys():
+ listOfEvents = eventVarMap["schedule"]
+ listOfEvents.append(Temp)
+ else:
+ eventVarMap["schedule"] = [Temp]
+