Update of /cvsroot/freevo/kaa/base/src/notifier
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4567/src/notifier

Modified Files:
        popen.py 
Log Message:
remove old callback code

Index: popen.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/popen.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** popen.py    2 Aug 2005 19:41:13 -0000       1.7
--- popen.py    5 Aug 2005 17:22:08 -0000       1.8
***************
*** 67,78 ****
      Base class for started child processes
      """
!     def __init__( self, app, debugname = None, callback = None ):
          """
          Init the child process 'app'. This can either be a string or a list
          of arguments (similar to popen2). If debugname is given, the stdout
!         and stderr will also be written. To get the stdout and stderr, you
!         need to inherit from this class and override stdout_cb and stderr_cb.
!         If callback is set, the given function will be called after the child
!         is dead.
          """
  
--- 67,75 ----
      Base class for started child processes
      """
!     def __init__( self, app, debugname = None ):
          """
          Init the child process 'app'. This can either be a string or a list
          of arguments (similar to popen2). If debugname is given, the stdout
!         and stderr will also be written.
          """
  
***************
*** 102,106 ****
          self.stopping = False
          self.__dead = False
!         self.callback = callback
          self.child = popen2.Popen3( start_str, True, 100 )
  
--- 99,103 ----
          self.stopping = False
          self.__dead = False
! 
          self.child = popen2.Popen3( start_str, True, 100 )
  
***************
*** 109,116 ****
          # IO_Handler for stdout
          self.stdout = IO_Handler( 'stdout', self.child.fromchild,
!                                   self._handle_stdout, debugname )
          # IO_Handler for stderr
          self.stderr = IO_Handler( 'stderr', self.child.childerr,
!                                   self._handle_stderr, debugname )
  
          # add child to watcher
--- 106,113 ----
          # IO_Handler for stdout
          self.stdout = IO_Handler( 'stdout', self.child.fromchild,
!                                   self.signals["stdout"].emit, debugname )
          # IO_Handler for stderr
          self.stderr = IO_Handler( 'stderr', self.child.childerr,
!                                   self.signals["stderr"].emit, debugname )
  
          # add child to watcher
***************
*** 241,270 ****
              notifier.removeTimer( self.__kill_timer )
          self.signals["died"].emit()
-         if self.callback:
-             # call external callback on stop
-             self.callback()
- 
-     def _handle_stdout(self, line):
-         self.signals["stdout"].emit(line)
-         self.stdout_cb(line)
- 
-     def _handle_stderr(self, line):
-         self.signals["stderr"].emit(line)
-         self.stderr_cb(line)
  
-     def stdout_cb( self, line ):
-         """
-         Override this method to receive stdout from the child app
-         The function receives complete lines
-         """
-         pass
- 
- 
-     def stderr_cb( self, line ):
-         """
-         Override this method to receive stderr from the child app
-         The function receives complete lines
-         """
-         pass
  
  
--- 238,242 ----



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to