~ryan.rousseau/py-education/quizzical-devel

« back to all changes in this revision

Viewing changes to quizzical/publisher.py

  • Committer: Ryan Rousseau
  • Date: 2006-08-17 18:06:40 UTC
  • Revision ID: ryan.rousseau@gmail.com-20060817180640-882cf5b5e8a461d9
inital release!

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        Pyro.EventService.Clients.Publisher.__init__(self)
43
43
        self.name = name
44
44
 
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)
47
47
 
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.
52
52
'''
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))