def get(self):
    if self.request.get('trigger') == "true":
        AEU_Events.subscribe("myTriggeredEventFired", self.myTriggeredCallback, {"msg": "Triggered!"})
    AEU_Events.subscribe("myEventFired", self.myCallback, {"msg": "This message was set in myCallback."})
    AEU_Events.fire_event("myEventFired")
    AEU_Events.fire_event("myTriggeredEventFired")
    template_values = {
        'msg': self.msg,
        'triggermsg': self.triggermsg,
    }
    AEU_Events.subscribe("myEventFired", self.myCallback, {"msg": "You will never see this message because the event to set it is fired after the template_values have already been set."})
    AEU_Events.fire_event("myEventFired")
    path = os.path.join(os.path.dirname(__file__), 'templates/event-new.html')
    self.response.out.write(template.render(path, template_values))
dataset/ETHPy150Open joerussbowman/gaeutilities/main.py/EventPage.get/original