Some questions

Bzzzz <[email protected]> Wed, 12 Nov 2014 19:59:10 +0100
Newsgroups gmane.comp.python.pyro
Organization Anyone, anywhere BUT in banana demokratik republik of france
Message-ID <[email protected]>
debian sid
python Ver. 2.7.8
====================

Hi list,

First, I'm not really a programmer, even though I did some C and
assembly language some decades ago (so not on the head… nor the balls;)

I've upgraded to 4.30 and try to use HMAC signature; my client is working
with one block of code, but not with the other one - I followed the
docs but I may not have understood it correctly:

work:
-----
ns = Pyro4.naming.locateNS()
ns._pyroHmacKey = conf_cli.HMAC_KEY
uri = ns.lookup( "rpc.server" )
DB = Pyro4.core.Proxy( uri )
DB._pyroHmacKey = conf_cli.HMAC_KEY
DB._pyroTimeout = 30.0
db_hash, _RIGHTS = DB.getRights( cli_db, cli_port, cli_user, cli_passwd,
    cli_host )

doesn't:
--------
DB = Pyro4.core.Proxy( "PYRONAME:rpc.server" )
    (BTW, as NS also have the same hmac key, how is it able to answer
    that without throwing an error as there's no key in parms?)
DB._pyroHmacKey = conf_cli.HMAC_KEY
    Here, when calling the remote object, I've got this error:
cannot connect: hmac key config not symmetric

This is a problem as some remote objects will be called a lot of time
and docs says my first method will overload the NS by multiple calls.

My other question is: if I log Pyro4 at debug level, I can see 
clients' IP addresses; how can I retrieve them into my server?

Jean-Yves
-- 
Bali dit : Erf, I'm sure you're drunk again…
Nawo dit : nooooooooo!!! Nto true
Bali dit : recite me the alphabet then ;D
Nawo dit : azertyuiopqsdfghjklmwxcvbn
Bali dit : … I'm at lost for words…

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core