Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.script.ScriptRequestStrings Class Reference
Inheritance diagram for MoinMoin.script.ScriptRequestStrings:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.script.ScriptRequestStrings:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def fetch_output
def read
def write
def write_err

Public Attributes

 instream
 outstream
 errstream

Detailed Description

When a script gets run by our xmlrpc server, we have the input as a
    string and we also need to catch the output / error output as strings.

Definition at line 62 of file __init__.py.


Constructor & Destructor Documentation

def MoinMoin.script.ScriptRequestStrings.__init__ (   self,
  instr 
)

Definition at line 66 of file __init__.py.

00066 
00067     def __init__(self, instr):
00068         self.instream = StringIO(instr)
00069         self.outstream = StringIO()
00070         self.errstream = StringIO()


Member Function Documentation

Definition at line 71 of file __init__.py.

00071 
00072     def fetch_output(self):
00073         outstr = self.outstream.get_value()
00074         errstr = self.errstream.get_value()
00075         self.outstream.close()
00076         self.errstream.close()
00077         return outstr, errstr
00078 
00079 
00080 # Logging -----------------------------------------------------------------

def MoinMoin.script.ScriptRequest.read (   self,
  n = None 
) [inherited]

Reimplemented in MoinMoin.script.ScriptRequestCLI.

Definition at line 32 of file __init__.py.

00032 
00033     def read(self, n=None):
00034         if n is None:
00035             data = self.instream.read()
00036         else:
00037             data = self.instream.read(n)
00038         return data

Here is the caller graph for this function:

def MoinMoin.script.ScriptRequest.write (   self,
  data 
) [inherited]

Reimplemented in MoinMoin.script.ScriptRequestCLI.

Definition at line 39 of file __init__.py.

00039 
00040     def write(self, data):
00041         self.outstream.write(data)

Here is the caller graph for this function:

def MoinMoin.script.ScriptRequest.write_err (   self,
  data 
) [inherited]

Reimplemented in MoinMoin.script.ScriptRequestCLI.

Definition at line 42 of file __init__.py.

00042 
00043     def write_err(self, data):
00044         self.errstream.write(data)
00045 


Member Data Documentation

Reimplemented from MoinMoin.script.ScriptRequest.

Definition at line 69 of file __init__.py.

Reimplemented from MoinMoin.script.ScriptRequest.

Definition at line 67 of file __init__.py.

Reimplemented from MoinMoin.script.ScriptRequest.

Definition at line 68 of file __init__.py.


The documentation for this class was generated from the following file: