IRC logs of #tryton for Thursday, 2015-03-12

chat.freenode.net #tryton log beginning Thu Mar 12 00:00:01 CET 2015
2015-03-12 00:30 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-03-12 00:34 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-12 00:49 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-03-12 00:56 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-03-12 02:01 -!- digitalsatori(~Thunderbi@180.157.147.234) has joined #tryton
2015-03-12 02:57 -!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton
2015-03-12 03:18 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-03-12 03:37 -!- digitalsatori(~Thunderbi@180.157.147.234) has joined #tryton
2015-03-12 06:02 -!- yangoon1(~mathiasb@p549F1F40.dip0.t-ipconnect.de) has joined #tryton
2015-03-12 06:09 -!- woakas1(~woakas@static.13.240.46.78.clients.your-server.de) has joined #tryton
2015-03-12 06:40 -!- frispete_(~frispete@p54A916DF.dip0.t-ipconnect.de) has joined #tryton
2015-03-12 07:30 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 08:07 -!- mathsniper(1b6d80cd@gateway/web/freenode/ip.27.109.128.205) has joined #tryton
2015-03-12 08:08 <mathsniper> If I need to connect postgresql database with specific user & password in flask_tryton, how to do?
2015-03-12 08:13 -!- pobsteta1(~Thunderbi@185.10.253.102) has joined #tryton
2015-03-12 08:17 <jvblasco> mathsniper: why connect to postgres directly when u have a tryton instance available??
2015-03-12 08:17 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-03-12 08:28 <mathsniper> I startup a trytond server with my config file. I am learning how to create my tryton model and talk to the trytond with flask_tryton
2015-03-12 08:29 <mathsniper> code => tryton = Tryton(app) will throw an exception error
2015-03-12 08:32 <mathsniper> I read the flask_tryton code. the init process will call "self.pool.init()".
2015-03-12 08:32 <mathsniper> Could anyone tell me how to test trytond with flask_tryton properly?
2015-03-12 08:44 <mathsniper> Working now. I set proper config to TRYTON_CONFIG in flask_tryton
2015-03-12 08:46 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-03-12 09:11 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-03-12 09:17 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-12 09:25 -!- pobsteta(~Thunderbi@185.10.253.102) has joined #tryton
2015-03-12 09:36 -!- pobsteta1(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 09:50 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-03-12 09:53 -!- VaticanCameos(~pritishc@103.245.118.154) has joined #tryton
2015-03-12 09:55 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 10:03 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2015-03-12 10:05 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 10:18 -!- bechamel(~Adium@109.132.207.40) has joined #tryton
2015-03-12 11:01 <mathsniper> How to set "proteus" to connect trytond?
2015-03-12 11:22 <pokoli> mathsniper: You should call set_trytond of proteus config, see https://pypi.python.org/pypi/proteus/3.4.2 for an example
2015-03-12 11:26 <mathsniper> I got the following error:
2015-03-12 11:26 <mathsniper> KeyError: 'res.user'
2015-03-12 11:26 <mathsniper> After running ">>> config = config.set_trytond(config_file='config.ini')"
2015-03-12 11:27 <mathsniper> config.ini contains the postgres uri
2015-03-12 11:30 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-12 11:49 <pokoli> mathsniper: AFAU you should set the database url on the first parameter
2015-03-12 11:50 <mathsniper> I tried config = confg.set_trytond('postgresql://.....') but I finally got KeyError: 'DB_NAME'
2015-03-12 11:53 <pokoli> mathsniper: i think you should also set user, and password
2015-03-12 11:54 <pokoli> mathsniper: if connecting to an existing database
2015-03-12 11:59 <mathsniper> I found the issue. It is because of the typo of uri
2015-03-12 12:00 <mathsniper> But then the other issue appeared, "return self._pool[self.database_name][type][name], KeyError: 'res.user'"
2015-03-12 12:00 <mathsniper> python2.7/site-packages/trytond/pool.py", line 168, in get
2015-03-12 12:02 <mathsniper> Cannot get "res.user" from the pool
2015-03-12 12:04 <cedk> mathsniper: you have to set the database name in the uri
2015-03-12 12:05 -!- Streward(~quassel@85.183.31.24) has joined #tryton
2015-03-12 12:05 <mathsniper> Yes I have set it
2015-03-12 12:05 <cedk> mathsniper: or set the DB_NAME environment
2015-03-12 12:05 <mathsniper> postgresql://user:password@localhost:5432/dbname
2015-03-12 12:05 <cedk> mathsniper: so your database is not initialized for Tryton
2015-03-12 12:06 <mathsniper> not init?
2015-03-12 12:07 <cedk> mathsniper: a database without res.user is a database that is not initialized
2015-03-12 12:08 <mathsniper> But I found the table res_user does exist
2015-03-12 12:08 <mathsniper> I can connect my db via psql
2015-03-12 12:10 <cedk> mathsniper: via inet with the same user:password?
2015-03-12 12:11 <mathsniper> yes
2015-03-12 12:16 <mathsniper> I tried setting specific user and password parameters to set_trytond but still failed
2015-03-12 12:16 <mathsniper> With KeyError: 'res.user'
2015-03-12 12:16 -!- mariomop(~quassel@host154.186-125-114.telecom.net.ar) has joined #tryton
2015-03-12 12:17 <mathsniper> I dunno the pool is either initialized successfully or not.
2015-03-12 12:18 <mathsniper> Im using both trytond and proteus in 3.4.2
2015-03-12 12:30 <cedk> mathsniper: this is very strange
2015-03-12 12:51 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-03-12 13:14 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2015-03-12 13:19 -!- meanmicio(~meanmicio@150.Red-79-158-173.staticIP.rima-tde.net) has joined #tryton
2015-03-12 13:19 -!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton
2015-03-12 13:24 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-03-12 13:42 -!- bechamel(~Adium@109.132.207.40) has joined #tryton
2015-03-12 14:09 -!- smarro(~sebastian@181.47.135.16) has joined #tryton
2015-03-12 14:13 -!- michael-kohlhaas(~mk@p57B9F5AD.dip0.t-ipconnect.de) has joined #tryton
2015-03-12 14:13 -!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton
2015-03-12 14:21 -!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton
2015-03-12 14:36 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-12 15:14 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 15:20 <mathsniper> Strange... I terminate the python console and start again. import proteus.config and set_trytond. Work again.
2015-03-12 15:36 <mathsniper> It sounds you can proteus and use it in Flask.
2015-03-12 16:02 -!- frispete_(~frispete@p54A916DF.dip0.t-ipconnect.de) has joined #tryton
2015-03-12 16:22 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-03-12 16:25 -!- digitalsatori(~Thunderbi@116.234.179.119) has joined #tryton
2015-03-12 16:27 -!- duesenfranz(~jona@chello213047255061.tirol.surfer.at) has joined #tryton
2015-03-12 16:57 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-03-12 16:57 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-12 17:03 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-03-12 17:18 -!- hiaselhans(~Thunderbi@77.119.133.91.wireless.dyn.drei.com) has joined #tryton
2015-03-12 17:43 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 18:04 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-12 18:08 -!- frispete(~frispete@p54A916DF.dip0.t-ipconnect.de) has joined #tryton
2015-03-12 18:20 -!- frispete(~frispete@p54A916DF.dip0.t-ipconnect.de) has joined #tryton
2015-03-12 18:25 -!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton
2015-03-12 18:28 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-03-12 18:28 -!- lukio(~lukio@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-12 19:06 -!- sunny_dealmeida(~quassel@203.115.76.23) has joined #tryton
2015-03-12 20:02 -!- hiaselhans(~Thunderbi@ydWLUI2-134-191.uibk.ac.at) has joined #tryton
2015-03-12 20:39 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-03-12 20:39 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-12 20:48 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-12 20:56 -!- nineinchnick(~jwas@109.231.17.96) has joined #tryton
2015-03-12 22:16 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-12 22:22 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-12 22:44 -!- jcros1(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-12 23:10 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-12 23:18 -!- udono(~udono@ip-37-201-196-116.hsi13.unitymediagroup.de) has joined #tryton
2015-03-12 23:23 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has left #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!