IRC logs of #tryton for Tuesday, 2017-05-30

chat.freenode.net #tryton log beginning Tue May 30 00:00:01 CEST 2017
-!- yangoon(~mathiasb@pD9F01F90.dip0.t-ipconnect.de) has joined #tryton00:13
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton00:15
-!- yangoon(~mathiasb@pD9F0657E.dip0.t-ipconnect.de) has joined #tryton02:01
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton02:03
-!- yangoon(~mathiasb@pD9F0200D.dip0.t-ipconnect.de) has joined #tryton02:43
-!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton07:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:01
-!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton08:08
-!- rpit(~rpit@2a02:908:e67a:7e20:56ee:75ff:fe0d:d3c7) has joined #tryton08:56
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:58
-!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton09:03
-!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton09:04
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton09:17
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:22
-!- dmollerm(~dmollerm@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton09:46
-!- thaneor(~ldlc6@179.26.147.104) has joined #tryton10:08
-!- mint(~mint@122.177.8.103) has joined #tryton10:49
-!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton11:12
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton11:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton11:29
-!- kstenger(~karla@r190-133-92-238.dialup.adsl.anteldata.net.uy) has joined #tryton11:53
-!- yangoon(~mathiasb@p578756A8.dip0.t-ipconnect.de) has joined #tryton11:58
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton12:05
-!- smarro(~sebastian@181.16.7.104) has joined #tryton12:06
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:10
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton12:13
-!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has left #tryton12:50
-!- mariomop(~quassel@181.95.246.224) has joined #tryton13:24
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton13:30
notizblockis there a way to show the database name in the GTK client?13:33
notizblockwe use several databases it is useful to quickly spot the database one is connected to. There was the URL bar before 4.4 but the url is now hidden behind the 'Copy URL' button.13:35
kstengernotizblock: I did it once, on 3.6 it will obviously need some updating (at least the metaclass bock should go inside the class), https://pastebin.com/sxv4XkD813:38
notizblockkstenger: ahh, thx for sharing. I'll take a look at it13:39
notizblockkstenger: great get_status_bar() was the pointer I needed :)13:54
kstengeryup, I guessed this would be useful, heh, it was fun to do at that time :)13:55
-!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton14:02
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton14:24
-!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton14:38
-!- smarro(~sebastian@181.16.7.104) has joined #tryton15:02
sisalpnotizblock: kstenger: I would be interested too to get the database name somewhere. for exemple in the window title. Is it easy ?15:02
kstengersisalp: my patch does this15:03
sisalpkstenger: where should I apply it ?15:05
kstengersisalp: place it in your custom module15:06
notizblockkstenger sisalp: The database name may be retrieved via Transaction().database.name15:08
sisalpkstenger : so it relates to user.py  Will have a try15:08
notizblocksisalp: get_status_bar() is extended in company, too15:09
sisalpif I add Transaction().database.name I get 'Transaction' object has no attribute 'database_name'15:20
-!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton15:25
notizblocksisalp: could it be that an underscore is in the statement?15:25
sisalpnotizblock: kstenger: I applied the patch as is on user.py and it seems uncompatible with 4.4 way15:26
kstengersisalp: I said it could need adapts, starting by the metaclass tag, sorry don't have time to do more about this right now15:28
-!- tbruyere(~smuxi@212-166-19-85.win.be) has joined #tryton15:28
-!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton15:29
sisalpkstenger: no worry, I just made a fast try and don't want to disturbe. I will check back later since it would be a useful funtion for me. Thank you for sharing.15:30
kstengersisalp: yw15:30
sisalpnotizblock: You got it : changing _ by . does the trick. It works perfectly !15:35
cedkmaybe we should find a way to display such information in the client15:44
Timitossometimes i miss a way how to show the user that he is using a test database. maybe by coloring something.15:50
cedkI think the title bar is a good place15:50
pokoliTimitos: maybe changing one icon on the test database (or the full menu set)15:50
notizblockTimitos: this is exactly the use case we have15:51
Timitosits not very obvious15:51
Timitosnotizblock: :-)15:51
Timitospersonally i ignore the title bar most of the time and i think many users will do like me15:52
Timitosbut i may be wrong15:52
Timitospokoli changing the icon set would only work for serverside icons, right?15:54
pokoliTimitos: IIRC for all icons15:55
cedkpokoli: I do not think the main icon is reloaded at connection15:58
sisalpcedk : the name of the database appears now in the window title on the gtk too. Was this what you meant ?16:06
-!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton16:08
-!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton16:13
-!- tbruyere(~smuxi@212-166-19-85.win.be) has joined #tryton16:14
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton16:15
cedksisalp: no, I said we should maybe think about a solution to get it shown16:24
sisalpcedk: you mean differently than what's in the patch ?16:35
cedksisalp: did not look the patch16:36
sisalpit just add the db name to the status bar in res/user.py16:37
kstengersisalp: cedk: not a patch per se, just an ammendment to a module, I guess you'd like a generic solution instead16:37
cedkafter some thoughts, I think it should display what the user entered in the login16:38
cedkso if he used a profile, it is a profile to should be display16:38
kstengerhmm, nice me thinks :D16:39
sisalpcedk : my problem is when I copy a database between several services for training or tests.16:39
cedkI do not think the information should come from the server, it could leak information16:39
cedkfor example, the database name could be translated by the backend etc.16:40
sisalpcedk: users can think they are on test and they pollute production16:40
cedksisalp: nothing can really prevent this, it is better to ensure that error can be corrected16:41
sisalpcedk : I don't see how really.16:41
sisalpcedk: when I have two client windows, I can manage it when database is indicated in the window title.16:43
kstengerif you use a profile, you can also use the database that was set up in the profile16:43
kstengerI mean you can also show*16:43
sisalpkstenger: ok, I understand now, yes it is a good idea16:44
sisalpkstenger: but then sao has no profile ?16:45
kstengersisalp: but it has login16:45
sisalpkstenger: may be my special case, but login is the same when I clone a db16:47
kstengersisalp: how do they differentiate?16:47
pokolisisalp: but the database is part of the loging16:48
kstengerexactly16:48
kstengerdb and url, and user16:48
pokoliindeed the url is part of it. As you can have testing.server.com and prod.server.com with the same database name16:49
pokolisao by default makes database field readonly if only one available16:49
sisalppokoli: but after login, I don't see this information any more16:50
pokolisisalp: agreee, but the database name is not enought to diferentiate16:50
sisalppokoli: in my special case Ithink it is enough, but more generally, it may not be16:51
kstengerwould it be possible to change the title bar of sao after login ?16:52
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton16:54
pokolikstenger: haven't tried but I think so16:54
-!- kstenger1(~karla@r190-133-92-238.dialup.adsl.anteldata.net.uy) has joined #tryton16:54
pokolikstenger1: haven't tried but I think so16:54
kstengerpokoli: great16:55
kstengerI think something like "Tryton user@host:db_name" would make a nice informative title bar16:55
pokolikstenger: or profile name if used (as it simplifies it)16:57
kstengerACTION nods16:57
kstengerI mean if no rofile was set16:57
kstengerp*16:57
pokoliand then it's when somebody says: "I'm going to provide a patch" :P16:58
kstengerI could try... :D16:59
kstengerbut sao...16:59
pokolikstenger: i can help on sao if requestes ;)17:01
-!- Marleyx(~jordan@97.red-79-151-196.dynamicip.rima-tde.net) has joined #tryton17:01
kstengerpokoli: great :)17:01
-!- kstenger1(~karla@r167-56-238-175.dialup.adsl.anteldata.net.uy) has joined #tryton17:14
-!- mariomop_(~quassel@host8.190-229-65.telecom.net.ar) has joined #tryton17:21
-!- dmollerm(~dmollerm@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton17:23
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton17:25
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton17:26
-!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton17:56
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:11
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton19:13
-!- shellbofh_(~shellbofh@fixed-187-188-50-69.totalplay.net) has joined #tryton19:22
-!- thaneor(~ldlc6@179.26.147.104) has joined #tryton19:57
-!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has left #tryton21:00
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:43
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:01
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton22:03
-!- thaneor1(~ldlc6@179.26.130.123) has joined #tryton22:11
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton22:12
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton23:07
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:40
-!- mariomop(~quassel@host8.190-229-65.telecom.net.ar) has joined #tryton23:47
-!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton23:59

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