Re: HMAC_KEY
"FC" <[email protected]> Wed, 13 Nov 2013 20:48:48 -0400
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <!&!AAAAAAAAAAAYAAAAAAAAAF77kJqvZ7BEhGtZjBF4Z97CgAAAEAAAAEL6BcEULAZNm8coyUa1rskBAAAAAA==@gmail.com> |
Hi, After this line: Pyro4.config.SERIALIZER="pickle" I have a message error: AttributeError: 'Configuration' object has no attribute 'SERIALIZER' Why ? Thanks -----Message d'origine----- De : Irmen de Jong [mailto:[email protected]] Envoyé : mercredi 13 novembre 2013 17:38 À : [email protected] Objet : Re: [Pyro] HMAC_KEY On 10-11-2013 23:56, FC wrote: > > How to connect to a secure flameserver? > > > Server side: *python -m Pyro4.utils.flameserver -H 192.168.1.102 -p 64444 -k 123456* > > Client side: */flame=Pyro4.utils.flame.connect("192.168.1.102:64444, key=123456") > ? > > I want explanation for connecting on a server with HMAC_Key Simply set the HMAC_KEY config item before connecting, just like you would do with any other Pyro client code: >>> import Pyro4.utils.flame >>> Pyro4.config.SERIALIZER="pickle" >>> Pyro4.config.HMAC_KEY=b"123456" >>> flame=Pyro4.utils.flame.connect("localhost:64444") >>> flame.evaluate("3+3") 6 Irmen ---------------------------------------------------------------------------- -- DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Pyro-core mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyro-core ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk