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

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

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!