Home | Trees | Index | Help |
---|
Package svnmailer :: Module processes :: Class Process |
|
object
--+
|
Process
Method Summary | |
---|---|
Initialization | |
Process |
Returns the process object of a detached process (Class method) |
Process |
Returns the process object of a piped process (Class method) |
Process |
Returns the process object of a piped process (Class method) |
int |
Waits for the process to end |
str or list |
Return the revised command suitable for being exec'd |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... |
Instance Variable Summary | |
---|---|
file | fromchild : pipe from the child |
file | tochild : pipe to the child |
ProcessImpl |
_impl : The ProcessImpl instance |
Class Variable Summary | |
---|---|
str | IMPLEMENTATION : A token describing the chosen implementation. |
type or ClassType | _IMPLEMENTATION_CLASS = svnmailer.processes.ProcessImpl |
_sre.SRE_Pattern | _SLASHRE : The substitution regex for backslashes (Win32 only) |
_sre.SRE_Pattern | _TOKENRE : The search regex for quotable tokens (Win32 only) |
Instance Method Details |
---|
__init__(self,
cmd,
pstdin=False,
pstdout=False,
pstderr=False,
detach=False)
Initialization |
wait(self)Waits for the process to end
|
_escapecmd(self, command, winshell=True)Return the revised command suitable for being exec'd Currently this means, it's escaped and converted to a string only for Win32, because on this system no list based exec is available. For other systems the list is just returned.
|
Class Method Details |
---|
detach(cls, command)Returns the process object of a detached process The function spawns a command detached from the current one. All std-handles are inherited (no pipe is opened).
|
pipe2(cls, command)Returns the process object of a piped process The function spawns a command and opens two pipes. One pipe is for writing to command's stdin and the other one is for reading stdout. stderr is inherited from the caller.
|
pipe4(cls, command)Returns the process object of a piped process The function spawns a command and opens two pipes. One pipe is for writing to command's stdin and the other one is for reading stdout + stderr (together)
|
Instance Variable Details |
---|
fromchildpipe from the child
|
tochildpipe to the child
|
_implTheProcessImpl instance
|
Class Variable Details |
---|
IMPLEMENTATIONA token describing the chosen implementation. Possible tokens are: subprocess, popen, win32api, dumb
|
_SLASHREThe substitution regex for backslashes (Win32 only)
|
_TOKENREThe search regex for quotable tokens (Win32 only)
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sun Sep 25 20:49:05 2005 | http://epydoc.sf.net |