Index: liveevil.py =================================================================== RCS file: /cvs/Nevow/nevow/liveevil.py,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 liveevil.py --- liveevil.py 19 Feb 2004 06:43:17 -0000 1.1.1.1 +++ liveevil.py 4 Mar 2004 19:08:58 -0000 @@ -38,11 +38,16 @@ # TODO set up an event hub self.events = events.EventNotification() self.hookupNotifications = [] + self.outputBuffer = [] def hookupOutput(self, output, finisher = None): #print "output hooked up." self.output = output self.finisher = finisher + for buf in self.outputBuffer: + output(buf) + print "Sent buffered item: ", buf + self.outputBuffer = [] for notify in self.hookupNotifications: notify(self) @@ -51,9 +56,11 @@ def sendScript(self, script): if self.output: + #print "output sent!", script self.output(script) else: - print "output ignored!", script + self.outputBuffer.append(script) + print "output buffered!", script def handleInput(self, identifier, *args): #self.sendScript(input)