2015-01-14 12:16 GMT+01:00 <[email protected]>: > Hi, I'm trying to import products with Proteus library, I found a document > [1] with a script but am having problems. After creating the file with the > script I run the console (doing python Import_csv_proteus.py )and get the > following error: > > Traceback (most recent call last): > File "Import_csv_proteus.py", line 6, in <module> > config = config.set_trytond('test_341', database_type='postgresql', > config_file='/etc/TRYTON/trytond.conf') > TypeError: set_trytond() got an unexpected keyword argument 'database_type'
change database_type to database: http://hg.tryton.org/proteus/file/76460de851e6/proteus/config.py#l194 > > I'm using the version 3.4 and my trytond.conf file is: > > [jsonrpc] > listen=*:8000 > > > [database] > uri=postgresql://xxxxxx:xxxxxxx@localhost:5432 > path=/home/----/---- > > > [session] > timeout=3600 > super_pwd=---------- > > > > I hope to resolve this issue, thank you very much in advance > > [1] > http://javivf.alasombra.net/blog/2013/06/importar-datos-a-tryton-usando-proteus-desde-csv -- Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette Please, DO NOT send attachment files with your answers, just copy and paste only the text you need to send into the body of your mails. Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette Raimon Esteve // Tryton y OpenERP en la nube: http://www.zzsaas.com // Documentación: http://doc.zzsaas.com www.zikzakmedia.com
