Back to index

moin  1.9.0~rc2
Functions
MoinMoin.xmlrpc.putClientInfo Namespace Reference

Functions

def execute

Detailed Description

    This is a wiki xmlrpc plugin doing some usage logging.
    It enables server admins to see how many clients use xmlrpc how often.
    It also helps MoinMoin development team  to improve xmlrpc stuff and get
    some statistics about MoinMoin usage.

    @copyright: 2004 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.

Function Documentation

def MoinMoin.xmlrpc.putClientInfo.execute (   xmlrpcobj,
  action,
  site 
)

Definition at line 13 of file putClientInfo.py.

00013 
00014 def execute(xmlrpcobj, action, site):
00015     t = time.time()
00016     logentry = '%d %s %s\n' % (t, action, site)
00017     log = open(os.path.join(xmlrpcobj.request.cfg.data_dir, 'xmlrpc-log'), 'a')
00018     log.write(logentry)
00019     log.close()
00020     return 0
00021