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

chat.freenode.net #tryton log beginning Tue May 30 00:00:01 CEST 2017
2017-05-30 00:13 -!- yangoon(~mathiasb@pD9F01F90.dip0.t-ipconnect.de) has joined #tryton
2017-05-30 00:15 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 02:01 -!- yangoon(~mathiasb@pD9F0657E.dip0.t-ipconnect.de) has joined #tryton
2017-05-30 02:03 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 02:43 -!- yangoon(~mathiasb@pD9F0200D.dip0.t-ipconnect.de) has joined #tryton
2017-05-30 07:44 -!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton
2017-05-30 08:01 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-30 08:08 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has joined #tryton
2017-05-30 08:56 -!- rpit(~rpit@2a02:908:e67a:7e20:56ee:75ff:fe0d:d3c7) has joined #tryton
2017-05-30 08:58 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-30 09:03 -!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton
2017-05-30 09:04 -!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton
2017-05-30 09:17 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2017-05-30 09:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-30 09:46 -!- dmollerm(~dmollerm@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2017-05-30 10:08 -!- thaneor(~ldlc6@179.26.147.104) has joined #tryton
2017-05-30 10:49 -!- mint(~mint@122.177.8.103) has joined #tryton
2017-05-30 11:12 -!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-30 11:19 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2017-05-30 11:29 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-30 11:53 -!- kstenger(~karla@r190-133-92-238.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-30 11:58 -!- yangoon(~mathiasb@p578756A8.dip0.t-ipconnect.de) has joined #tryton
2017-05-30 12:05 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2017-05-30 12:06 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-05-30 12:10 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-30 12:13 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-30 12:50 -!- JanGB(~jan@business-178-015-079-061.static.arcor-ip.net) has left #tryton
2017-05-30 13:24 -!- mariomop(~quassel@181.95.246.224) has joined #tryton
2017-05-30 13:30 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton
2017-05-30 13:33 <notizblock> is there a way to show the database name in the GTK client?
2017-05-30 13:35 <notizblock> we 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.
2017-05-30 13:38 <kstenger> notizblock: 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/sxv4XkD8
2017-05-30 13:39 <notizblock> kstenger: ahh, thx for sharing. I'll take a look at it
2017-05-30 13:54 <notizblock> kstenger: great get_status_bar() was the pointer I needed :)
2017-05-30 13:55 <kstenger> yup, I guessed this would be useful, heh, it was fun to do at that time :)
2017-05-30 14:02 -!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-30 14:24 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-30 14:38 -!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton
2017-05-30 15:02 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-05-30 15:02 <sisalp> notizblock: kstenger: I would be interested too to get the database name somewhere. for exemple in the window title. Is it easy ?
2017-05-30 15:03 <kstenger> sisalp: my patch does this
2017-05-30 15:05 <sisalp> kstenger: where should I apply it ?
2017-05-30 15:06 <kstenger> sisalp: place it in your custom module
2017-05-30 15:08 <notizblock> kstenger sisalp: The database name may be retrieved via Transaction().database.name
2017-05-30 15:08 <sisalp> kstenger : so it relates to user.py Will have a try
2017-05-30 15:09 <notizblock> sisalp: get_status_bar() is extended in company, too
2017-05-30 15:20 <sisalp> if I add Transaction().database.name I get 'Transaction' object has no attribute 'database_name'
2017-05-30 15:25 -!- dj_xatra_(~dj_xatra@217.166.83.130) has joined #tryton
2017-05-30 15:25 <notizblock> sisalp: could it be that an underscore is in the statement?
2017-05-30 15:26 <sisalp> notizblock: kstenger: I applied the patch as is on user.py and it seems uncompatible with 4.4 way
2017-05-30 15:28 <kstenger> sisalp: I said it could need adapts, starting by the metaclass tag, sorry don't have time to do more about this right now
2017-05-30 15:28 -!- tbruyere(~smuxi@212-166-19-85.win.be) has joined #tryton
2017-05-30 15:29 -!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton
2017-05-30 15:30 <sisalp> kstenger: 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.
2017-05-30 15:30 <kstenger> sisalp: yw
2017-05-30 15:35 <sisalp> notizblock: You got it : changing _ by . does the trick. It works perfectly !
2017-05-30 15:44 <cedk> maybe we should find a way to display such information in the client
2017-05-30 15:50 <Timitos> sometimes i miss a way how to show the user that he is using a test database. maybe by coloring something.
2017-05-30 15:50 <cedk> I think the title bar is a good place
2017-05-30 15:50 <pokoli> Timitos: maybe changing one icon on the test database (or the full menu set)
2017-05-30 15:51 <notizblock> Timitos: this is exactly the use case we have
2017-05-30 15:51 <Timitos> its not very obvious
2017-05-30 15:51 <Timitos> notizblock: :-)
2017-05-30 15:52 <Timitos> personally i ignore the title bar most of the time and i think many users will do like me
2017-05-30 15:52 <Timitos> but i may be wrong
2017-05-30 15:54 <Timitos> pokoli changing the icon set would only work for serverside icons, right?
2017-05-30 15:55 <pokoli> Timitos: IIRC for all icons
2017-05-30 15:58 <cedk> pokoli: I do not think the main icon is reloaded at connection
2017-05-30 16:06 <sisalp> cedk : the name of the database appears now in the window title on the gtk too. Was this what you meant ?
2017-05-30 16:08 -!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton
2017-05-30 16:13 -!- mrichez(~smuxi@212-166-19-85.win.be) has joined #tryton
2017-05-30 16:14 -!- tbruyere(~smuxi@212-166-19-85.win.be) has joined #tryton
2017-05-30 16:15 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2017-05-30 16:24 <cedk> sisalp: no, I said we should maybe think about a solution to get it shown
2017-05-30 16:35 <sisalp> cedk: you mean differently than what's in the patch ?
2017-05-30 16:36 <cedk> sisalp: did not look the patch
2017-05-30 16:37 <sisalp> it just add the db name to the status bar in res/user.py
2017-05-30 16:37 <kstenger> sisalp: cedk: not a patch per se, just an ammendment to a module, I guess you'd like a generic solution instead
2017-05-30 16:38 <cedk> after some thoughts, I think it should display what the user entered in the login
2017-05-30 16:38 <cedk> so if he used a profile, it is a profile to should be display
2017-05-30 16:39 <kstenger> hmm, nice me thinks :D
2017-05-30 16:39 <sisalp> cedk : my problem is when I copy a database between several services for training or tests.
2017-05-30 16:39 <cedk> I do not think the information should come from the server, it could leak information
2017-05-30 16:40 <cedk> for example, the database name could be translated by the backend etc.
2017-05-30 16:40 <sisalp> cedk: users can think they are on test and they pollute production
2017-05-30 16:41 <cedk> sisalp: nothing can really prevent this, it is better to ensure that error can be corrected
2017-05-30 16:41 <sisalp> cedk : I don't see how really.
2017-05-30 16:43 <sisalp> cedk: when I have two client windows, I can manage it when database is indicated in the window title.
2017-05-30 16:43 <kstenger> if you use a profile, you can also use the database that was set up in the profile
2017-05-30 16:43 <kstenger> I mean you can also show*
2017-05-30 16:44 <sisalp> kstenger: ok, I understand now, yes it is a good idea
2017-05-30 16:45 <sisalp> kstenger: but then sao has no profile ?
2017-05-30 16:45 <kstenger> sisalp: but it has login
2017-05-30 16:47 <sisalp> kstenger: may be my special case, but login is the same when I clone a db
2017-05-30 16:47 <kstenger> sisalp: how do they differentiate?
2017-05-30 16:48 <pokoli> sisalp: but the database is part of the loging
2017-05-30 16:48 <kstenger> exactly
2017-05-30 16:48 <kstenger> db and url, and user
2017-05-30 16:49 <pokoli> indeed the url is part of it. As you can have testing.server.com and prod.server.com with the same database name
2017-05-30 16:49 <pokoli> sao by default makes database field readonly if only one available
2017-05-30 16:50 <sisalp> pokoli: but after login, I don't see this information any more
2017-05-30 16:50 <pokoli> sisalp: agreee, but the database name is not enought to diferentiate
2017-05-30 16:51 <sisalp> pokoli: in my special case Ithink it is enough, but more generally, it may not be
2017-05-30 16:52 <kstenger> would it be possible to change the title bar of sao after login ?
2017-05-30 16:54 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 16:54 <pokoli> kstenger: haven't tried but I think so
2017-05-30 16:54 -!- kstenger1(~karla@r190-133-92-238.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-30 16:54 <pokoli> kstenger1: haven't tried but I think so
2017-05-30 16:55 <kstenger> pokoli: great
2017-05-30 16:55 <kstenger> I think something like "Tryton user@host:db_name" would make a nice informative title bar
2017-05-30 16:57 <pokoli> kstenger: or profile name if used (as it simplifies it)
2017-05-30 16:57 <kstenger> ACTION nods
2017-05-30 16:57 <kstenger> I mean if no rofile was set
2017-05-30 16:57 <kstenger> p*
2017-05-30 16:58 <pokoli> and then it's when somebody says: "I'm going to provide a patch" :P
2017-05-30 16:59 <kstenger> I could try... :D
2017-05-30 16:59 <kstenger> but sao...
2017-05-30 17:01 <pokoli> kstenger: i can help on sao if requestes ;)
2017-05-30 17:01 -!- Marleyx(~jordan@97.red-79-151-196.dynamicip.rima-tde.net) has joined #tryton
2017-05-30 17:01 <kstenger> pokoli: great :)
2017-05-30 17:14 -!- kstenger1(~karla@r167-56-238-175.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-05-30 17:21 -!- mariomop_(~quassel@host8.190-229-65.telecom.net.ar) has joined #tryton
2017-05-30 17:23 -!- dmollerm(~dmollerm@170.red-80-28-119.adsl.static.ccgg.telefonica.net) has joined #tryton
2017-05-30 17:25 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 17:26 -!- nicoe(~nicoe@87.215.31.146) has joined #tryton
2017-05-30 17:56 -!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton
2017-05-30 19:11 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-05-30 19:13 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 19:22 -!- shellbofh_(~shellbofh@fixed-187-188-50-69.totalplay.net) has joined #tryton
2017-05-30 19:57 -!- thaneor(~ldlc6@179.26.147.104) has joined #tryton
2017-05-30 21:00 -!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has left #tryton
2017-05-30 21:43 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-30 22:01 -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton
2017-05-30 22:03 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 22:11 -!- thaneor1(~ldlc6@179.26.130.123) has joined #tryton
2017-05-30 22:12 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 23:07 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton
2017-05-30 23:40 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-05-30 23:47 -!- mariomop(~quassel@host8.190-229-65.telecom.net.ar) has joined #tryton
2017-05-30 23:59 -!- JosDzG(~Thunderbi@189.250.72.216) has joined #tryton

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