11 Feb
2004
11 Feb
'04
5:59 p.m.
Andreas Jung wrote at 2004-2-10 18:34 +0100:
Not really since all network servers of Zope (HTTP, FTP, XMLRPC etc.) convert their payload into a request object which is passed to the ZPublisher. So the called object only sees the REQUEST but not who created the REQUEST. You could hack Zope XMLRPC engine to include some kind of flag to indicate that the REQUEST comes through XMLRPC and then check the flag from within your application.
... but many protocols have specicialized "RESPONSE" objects... The XML-RPC protocal uses a "ZPublisher.xmlrpc.Response" instance as "RESPONSE" object. -- Dieter