Re: Pyro4.Proxy would be better with an intrinsic hmac option

Irmen de Jong <[email protected]> Sat, 14 Feb 2015 16:22:52 +0100
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 13-2-2015 5:33, Bzzzz wrote:
> 4.33 tarball
> =============
> 
> Hi list,
> 
> This is working correctly:
> DB = Pyro4.Proxy("PYRONAME:rpc.server")
> DB._pyroHmacKey = conf_cli.HMAC_KEY
> 
> but it would be easier to have:
> DB = Pyro4.Proxy("PYRONAME:rpc.server", conf_cli.HMAC_KEY)
> 

Setting the hmac key is now the same for a proxy as it is for the daemon.
And you can easily create your own factory method if you want to do this.


I'm not inclined on changing the constructor for proxies and daemons myself right now.
If someone sends me a good pull request on github for this I might consider merging it in.

Irmen


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/