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.
>
> --
> 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/
>
@ced the encoding base64 didn't work. on the client[1] send the data in raw
binary.
i try doing this and trytond log said:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 2944; 0 0 COMMENT
EXTENSION plpgsql
pg_restore: [archiver (db)] could not execute query: ERROR: must be owner
of extension plpgsql
Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural
language';
pg_restore: WARNING: no privileges could be revoked for "public"
pg_restore: WARNING: no privileges could be revoked for "public"
pg_restore: WARNING: no privileges were granted for "public"
pg_restore: WARNING: no privileges were granted for "public"
WARNING: errors ignored on restore: 1
the tryton client works perfect.
[1]:
http://hg.tryton.org/2.8/tryton/file/1fea5ad20939/tryton/gui/main.py#l1463
--
Andres Vargas
www.zodman.com.mx