[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-07-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am taking your comment as a suggestion to close this. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-07-11 Thread samwyse
samwyse added the comment: More importantly, the dispatch method is now part of the SimpleXMLRPCDispatcher, which (as a mix-in class) has no direct access to the RequestHandler instance that comprises the request. This breaks Victor's and my idea, unless one is willing to subclass SimpleXMLRPCR

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.x, class SimpleXMLRPCServer lives in module xmlrpc.server -- nosy: +tjreedy versions: +Python 3.2 -Python 2.5 ___ Python tracker ___ _

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor added the comment: Oops oops oops, samwyse wrote exactly the same idea than me in the first comment! -- ___ Python tracker ___ ___

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor added the comment: Oops, I mean "client_address is interresting, but ..." -- ___ Python tracker ___ ___ Python-bugs-lis

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2010-02-01 Thread STINNER Victor
STINNER Victor added the comment: client_address is not interresting, but I prefer the handler object (SimpleXMLRPCRequestHandler instance). The handler contains more information: * handler.address_string() gives the FQDN * handler.connection.getpeername() gives the client address * handler.

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2009-08-27 Thread andrew cooke
andrew cooke added the comment: Came here wondering how best to solve this myself. I already subclass the request handler to do client validation (password etc) and it stuck me that a simpler solution would be to use thread local storage. This avoids having to modify dispatch. The disadvantag

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2009-05-16 Thread samwyse
samwyse added the comment: A more general solution would be to pass the RequestHandler instance as a parameter to the dispatch function. This would allow the function to pick out more than just the client address. To avoid breaking pre-existing code, this should be made optional, perhaps by ad

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2008-06-09 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda <[EMAIL PROTECTED]>: -- nosy: +draghuram ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue3058] Let SimpleXMLRPCServer pass client_address to called functions.

2008-06-07 Thread Kunshan Wang
New submission from Kunshan Wang <[EMAIL PROTECTED]>: I recently wrote a program making use of SimpleXMLRPCServer. It has a function that responds to the caller according to the caller's IP address. However the current SimpleXMLRPCServer does not allow me to do this (directly). For example: de