Back to index

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

List of all members.

Public Member Functions

def __init__
def read
def write
def write_err

Public Attributes

 instream
 outstream
 errstream

Detailed Description

this is for scripts (MoinMoin/script/*) running from the commandline (CLI)
   or from the xmlrpc server (triggered by a remote xmlrpc client).

   Every script needs to do IO using this ScriptRequest class object -
   IT IS DIFFERENT from the usual "request" you have in moin (easily to be seen
   when you look at an xmlrpc script invocation: request.write will write to the
   xmlrpc "channel", but scriptrequest.write needs to write to some buffer we
   transmit later as an xmlrpc function return value.

Definition at line 17 of file __init__.py.


Constructor & Destructor Documentation

def MoinMoin.script.ScriptRequest.__init__ (   self,
  instream,
  outstream,
  errstream 
)

Definition at line 27 of file __init__.py.

00027 
00028     def __init__(self, instream, outstream, errstream):
00029         self.instream = instream
00030         self.outstream = outstream
00031         self.errstream = errstream


Member Function Documentation

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

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 
)

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 
)

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 in MoinMoin.script.ScriptRequestStrings.

Definition at line 30 of file __init__.py.

Reimplemented in MoinMoin.script.ScriptRequestStrings.

Definition at line 28 of file __init__.py.

Reimplemented in MoinMoin.script.ScriptRequestStrings.

Definition at line 29 of file __init__.py.


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