2013/7/9 Andres Vargas <[email protected]>

> 2013/7/9 Cédric Krier <[email protected]>
>
>> On 09/07/13 10:47 -0500, Andres Vargas wrote:
>> > 2013/7/8 Cédric Krier <[email protected]>
>> >
>> > > On 08/07/13 17:26 -0500, Andres Vargas wrote:
>> > > > Hi dudes!
>> > > >
>> > > > I working on a simple app for manage tryton admin actions (like
>> create,
>> > > > drop, restore, dump) on the database.
>> > > >
>> > > > I finished all but i have problems with the restore commando. I
>> have the
>> > > > dump on a   python  file object
>> > > >
>> > > >  how i can send to jsonrpc interface?
>> > > >
>> > > > here the way to send it:
>> > > >
>> > > >
>> > > >
>> > >
>> https://bitbucket.org/zodman/trident/src/2e0beca4c9d7ff9d62a3f3a98cdfceeb4cd0bb1f/trident/__init__.py?at=default#cl-61
>> > > >
>> > > > I need pass the "data" like some special encoding (utf-8)? like
>> > > > binary/buffer?
>> > >
>> > > a base64 encoded string.
>> >
>> > @ced the encoding base64 didn't work. on the client[1] send the data in
>> raw
>> > binary.
>>
>> Oups sorry forget to say, you must encapsulate the base64 into a class
>> dict:
>>
>>     http://hg.tryton.org/tryton/file/0118233a9c34/tryton/jsonrpc.py#l91
>>
>>
>> --
>> Cédric Krier
>>
>> B2CK SPRL
>> Rue de Rotterdam, 4
>> 4000 Liège
>> Belgium
>> Tel: +32 472 54 46 59
>> Email/Jabber: [email protected]
>> Website: http://www.b2ck.com/
>>
>
> if i understand the code[1] the data send on instance type buffer and the
> jsonencoder do the rest.
>
> Thanks ced.
>
> [1]: http://hg.tryton.org/tryton/file/0118233a9c34/tryton/jsonrpc.py#l91
>
> --
> Andres Vargas
> www.zodman.com.mx
>


note** i using the jsonrpc.ProxyServer from the tryton client

-- 
Andres Vargas
www.zodman.com.mx

Reply via email to