Back to index

moin  1.9.0~rc2
Functions | Variables
MoinMoin.xmlrpc.RemoteScript Namespace Reference

Functions

def execute

Variables

tuple logging = log.getLogger(__name__)

Function Documentation

def MoinMoin.xmlrpc.RemoteScript.execute (   xmlrpcobj,
  their_secret,
  argv 
)

Definition at line 14 of file RemoteScript.py.

00014 
00015 def execute(xmlrpcobj, their_secret, argv):
00016     request = xmlrpcobj.request
00017     their_secret = xmlrpcobj._instr(their_secret)
00018 
00019     our_secret = request.cfg.secrets['xmlrpc/RemoteScript']
00020 
00021     if our_secret != their_secret:
00022         return u"Invalid password"
00023 
00024     try:
00025         logging.info("RemoteScript argv: %r" % argv)
00026         MoinScript(argv).run(showtime=0)
00027     except Exception, err:
00028         logging.exception('An exception occurred.')
00029         return xmlrpcobj._outstr(str(err))
00030     return xmlrpcobj._outstr(u"OK")
00031 

Here is the call graph for this function:


Variable Documentation

Definition at line 10 of file RemoteScript.py.