/usr/share/pyshared/MoinMoin/xmlrpc/putClientInfo.py is in python-moinmoin 1.9.3-1ubuntu2.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """
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.
"""
import os, time
def execute(xmlrpcobj, action, site):
t = time.time()
logentry = '%d %s %s\n' % (t, action, site)
log = open(os.path.join(xmlrpcobj.request.cfg.data_dir, 'xmlrpc-log'), 'a')
log.write(logentry)
log.close()
return 0
|