This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ahojnnes
Recipients ahojnnes
Date 2010-01-24.12:48:37
SpamBayes Score 1.1146419e-07
Marked as misclassified No
Message-id <1264337326.51.0.913533963705.issue7769@psf.upfronthosting.co.za>
In-reply-to
Content
I would suggest to make SimpleXMLRPCServer.SimpleXMLRPCServer.register_function a decorator function.
See the attached file for the solution I wrote (l.209-240), which also works with the current syntax:
@server.register_function
@server.register_function('name')
@server.register_function(name='name')
or:
server.register_function(func)
server.register_function(func, name='name')
server.register_function(function=func, name='name')

So as far as I've tested it (py2.6), it is fully backwards compatible and supports decorators in addition.
History
Date User Action Args
2010-01-24 12:48:46ahojnnessetrecipients: + ahojnnes
2010-01-24 12:48:46ahojnnessetmessageid: <1264337326.51.0.913533963705.issue7769@psf.upfronthosting.co.za>
2010-01-24 12:48:44ahojnneslinkissue7769 messages
2010-01-24 12:48:43ahojnnescreate