42
42
Pyro.EventService.Clients.Publisher.__init__(self)
45
def publish_event(self, sender, student, event, message):
46
'''publish_event(sender, student, event, message)
45
def publish_event(self, session, student, event, message):
46
'''publish_event(session, student, event, message)
48
sender is the name of the object sending the event.
48
session is the name of the session sending the event.
49
49
student is the name of the student involved, if any
50
50
event is the name of the event.
51
51
message is the content of the event.
53
53
# print 'PUBLISHING EVENT %s' % event
54
54
channel = '%s.%s' % (EVENT_CHANNEL, self.name)
55
self.publish(channel, (sender, student, event, message))
55
self.publish(channel, (session, student, event, message))