[omniORB-dev] Re: Python interceptors - no way to get peer identity
- patch
Konstantin Olkhovskiy
lupus at oxnull.net
Fri Jul 9 12:47:11 BST 2010
Does this patch have any chance to be integrated?
We can't start our project without being sure that we do not need
patching future releases...
2010/6/10 Konstantin Olkhovskiy <lupus at oxnull.net>:
> Hello,
> finally i managed to code it down... It should not break any existing code.
> One should pass optional second boolean argument to
> addServerReceiveRequest or addClientReceiveReply, i.e.:
>
> interceptors.addServerReceiveRequest(validateCredentials, True)
> interceptors.addClientReceiveReply(validateCredentials, True)
>
> Sample validateCredentials might look like this:
>
> def validateCredentials(op, contexts, peer_info):
> address = peer_info['address']
> identity = peer_info['identity']
> print "%s@%s" % (address, identity)
>
>
> Patch is attached. Hope i didn't forget anything.
> --
> Cheers,
> Konstantin Olkhovskiy
>
--
Cheers,
Konstantin Olkhovskiy
More information about the omniORB-dev
mailing list