qm :: executable :: Filter :: Class Filter
[hide private]
[frames] | no frames]

Class Filter
source code

   object --+            
            |            
   Executable --+        
                |        
TimeoutExecutable --+    
                    |    
 RedirectedExecutable --+
                        |
                       Filter

A 'FilterExecutable' feeds an input string to another proces.

The input string is provided to a child process via a pipe; the standard output and standard error streams from the child process are collected in the 'Filter'.

Instance Methods [hide private]
  __init__(self, input, timeout=-1)
Create a new 'Filter'.
  _WriteStdin(self)
Write to the standard input pipe.

Inherited from TimeoutExecutable: Run

Inherited from Executable: Kill, Spawn

Inherited from Executable (private): _GetChildPID

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, input, timeout=-1)
(Constructor)

source code 

Create a new 'Filter'.

'input' -- The string containing the input to provide to the child process.

'timeout' -- As for 'TimeoutExecutable.__init__'.
Overrides: TimeoutExecutable.__init__

_WriteStdin(self)

source code 

Write to the standard input pipe.

This implementation writes no data and closes the pipe.
Overrides: RedirectedExecutable._WriteStdin
(inherited documentation)