/srv/irclogs.ubuntu.com/2012/10/11/#ubuntuone.txt

=== theshining_ is now known as theshining
=== m_conley_away is now known as m_conley
=== m_conley is now known as m_conley_away
mandelmorning all!07:56
JamesTaitGood morning all! :-D08:23
=== cparrino is now known as cparrino-QBR
ralsinagood morning!11:13
mandelralsina, morning!11:14
mandelralsina, and.. I hate unity trunk, they changed again something in the preview container that broke the payment preview.. I already fixed it but it is a PITA11:14
ralsinamandel: :-(11:17
ralsinamandel: well, our trunk is broken too11:17
mandelralsina, what?! how come?11:17
ralsinasomething in the sync menu breaks when there is no sync menu installed11:18
mandelralsina, unity trunk I don't care,, but ours? how did that happen?11:18
mandelralsina, mierda :(11:18
ralsinamandel: surely an easy fix, I am about to do it11:19
ralsinamandel: plus nightlies are broken in Lucid, which affects the server guys, so I am looking into that as well11:19
ralsinamandel: and apparently windows is very broken11:19
ralsinamandel: so, FUN DAY!11:19
mandelralsina, I'm not that busy with the preview, send some bugs my way :)11:20
gatoxgood morning!11:29
ralsinamandel: sure will11:30
ralsinagood morning gatox11:30
gatoxralsina, hi11:30
ralsinagatox: do you have a lucid box?11:35
ralsinagatox: it seems like the sync menu breaks when there is no sync menu: http://pastebin.ubuntu.com/1273005/11:35
gatoxralsina, no...... no lucid..... i can install one if you want11:37
ralsinagatox: if you can just start a branch fixing that one, and pass it onto facundobatista to test, that's good enough11:38
gatoxralsina, ok.... i'll do that11:38
gatoxthe problem seems to be with dbusmenu, not the sync menu11:39
ralsinagatox: yes, but dbusmenu is only used by the sync menu, isn't it? (I don't know)11:40
gatoxralsina, yes11:41
ralsinagatox: the import is guarded, but then the usage is not11:41
ralsinagatox: so the import fails, sets a flag, and the flag is ignored :-)11:41
gatoxralsina, we are using the flag for the other part of the menu, i'll extend it to take care of that part too11:42
ralsinagatox: awesome11:43
ralsinagatox: also, trunk on P: http://pastebin.ubuntu.com/1273024/11:47
ralsinagatox: I think you can do both in one branch11:47
gatoxralsina, yap :S11:47
=== mmcc_ is now known as mmcc
mandelralsina, any bus numbers for me12:01
ralsinamandel: let me find a special one :-)12:02
mandelralsina, I don't want bug #1 thx ;-)12:02
ubot5Launchpad bug 1 in Ubuntu "Proprietary operating systems have a majority market share" [Critical,In progress] https://launchpad.net/bugs/112:02
ralsinamandel: ok bug #3 ;-)12:03
ubot5Launchpad bug 3 in Launchpad itself "Custom information for each translation team" [Low,Fix released] https://launchpad.net/bugs/312:03
* ralsina loves vague mission statement bugs12:03
mandelralsina, I write by bugs as todos :)12:04
gatoxralsina, can you review it? https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menulucid/+merge/12916912:04
ralsinagatox: sure12:04
gatoxlet me know if we need two reviews for that12:05
ralsinagatox: I would like facundobatista to take a look12:07
gatoxralsina, ah right12:07
gatoxfacundobatista, can you please review this one? https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menulucid/+merge/12916912:07
mandelralsina, gatox, do you guys have any idea of why the following is not merging: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/u1-cp-publishapi/+merge/12831612:08
gatoxmandel, i was about to check that..... because those tests are working here12:08
facundobatistagatox, from the diff, if you do12:08
facundobatista+ Menuitem = object12:09
facundobatistaand then12:09
mandelgatox, yes, same here, which is weird12:09
facundobatista+ self.go_to_web = Menuitem()12:09
gatoxfacundobatista, i know.... fixing that12:09
gatoxflakes fail12:09
facundobatistagatox, you know what?12:09
gatoxfacundobatista, i thought you were talking about something else12:10
gatoxfacundobatista, what happend?12:10
facundobatistagatox, from the diff, if you do12:10
facundobatista+ Menuitem = object12:10
facundobatistaand then12:10
facundobatista+ self.go_to_web = Menuitem()12:10
facundobatistagatox, how do you then do12:10
facundobatista41self.go_to_web.property_set(Dbusmenu.MENUITEM_PROP_LABEL, GO_TO_WEB)12:10
facundobatista?12:10
gatoxfacundobatista, if you look at the bottom of the file, we have: UbuntuOneSyncMenu = UbuntuOneSyncMenuLinux if use_syncmenu else DummySyncMenu12:10
gatoxso, if we reach the point to do:12:11
facundobatistagatox, I mean, object() has no property_set12:11
gatoxMenuitem = object12:11
gatoxthat part of the code is never used12:11
ralsinagatox: shouldn't that be TransfersMenu()?12:11
ralsinagatox: so, you replace the base class of TransfersMenu but you use the actual class everywhere?12:12
gatoxralsina, the only place where TransfersMenu is being used, is inside UbuntuOneSyncMenuLinux..... and if the import fail and we have use_syncmenu = False the real use_syncmenu = False is not used..... so we are not using TransfersMenu either12:13
ralsinagatox: yes, but that code feels bad :-)12:13
gatoxthe real UbuntuOneSyncMenuLinux i mean12:13
mandelgatox, ralsina, what was the exact error, getting an import error from gi.repository?12:13
facundobatistagatox, if you have code that is broken, and never used, *delete it*12:13
ralsinagatox: if it's not used, then why set it?12:13
gatoxfacundobatista, it is used...... not in lucid12:14
ralsinagatox: is there any chance of Menuitem being instantiated from object?12:15
gatoxralsina, the other thing was to declare TransfersMenu and DummyTransfersMenu inside an if using use_syncmenu..... but it seems ugly...... maybe it just my opinion12:15
gatoxralsina, sorry.... didn't understand that question12:15
ralsinagatox: you are setting sometimes Menuitem = object and in other cases Menuitem is something else12:16
ralsinagatox: so you have a class that sometimes has an API and sometimes doesn't12:17
ralsinagatox: which is an accident waiting to happen :-)12:17
ralsinagatox: I would be happier if it were sometimes the real thing and sometimes the dummy but always with a consistent api12:17
gatoxralsina, yes..... if we assume that TransfersMenu is going to be used for someone else instead of UbuntuOneSyncMenuLinux...... do you prefer the option with the class declared inside an if?12:18
ralsinagatox: yes12:18
gatoxralsina, ok.... i'll change that12:18
ralsinagatox: or declare it always and use an if to assign it to the "real" name?12:19
ralsinagatox: either way is good12:19
facundobatistagatox, wasn't simpler to do this? class TransfersMenu(Dbusmenu.Menuitem if use_syncmenu else object)12:19
gatoxfacundobatista, but that has the same problem that ralsina was saying12:20
* facundobatista reads backlog12:20
facundobatistagatox, +0 to the both classes definition inside a big if12:21
gatoxfacundobatista, i don't like that option either..... but......12:22
ralsinafacundobatista: I don't love it either but having an instantiable object feels just bad :-(12:22
mandelfacundobatista, ralsina gatox, why not leave it like it is, do the import from within  the UBuntuOneSyncMenuLinux with a try except and then if you got an except set it to none and check when needed12:22
facundobatistagatox, ralsina, the cleanest way to do it is to import the class you'll use from two separated files, but this is good enough12:23
gatoxmandel, +112:23
gatoxi like mandel suggestion12:23
ralsinafacundobatista, gatox: I trust your good taste guys :-)12:23
mandelralsina, I'm done with the preview changes, any bugs for me.. please...12:27
ralsinamandel: in 1'12:30
ralsinamandel: bug #106527212:31
ubot5Error: Launchpad bug 1065272 could not be found12:31
ralsinamandel: should be easy-ish12:31
gatoxralsina, facundobatista here is the branch using mandel 's suggestion (which i think is the cleanest one): https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menulucid/+merge/12916912:32
ralsinamandel: then bug #1062729 which is semi-trivial too12:32
ubot5Launchpad bug 1062729 in Ubuntu One Client "sync menu uses wrong upload size for percentages" [Undecided,Confirmed] https://launchpad.net/bugs/106272912:32
ralsinagatox: much nicer12:33
* mandel ego +112:33
mandelhehehe12:33
gatoxthx mandel12:33
gatoxjeje12:33
ralsinagatox: still feels bad to declare a whole class we will never use :-)12:34
gatoxralsina, but we use it!12:34
ralsinagatox: not if it inherits object we don't12:34
gatoxralsina, in that case goes back to None12:34
gatoxat the end12:34
ralsinagatox: exactly, so, we define a class that inherits object and then we set it to None :-)12:34
ralsinagatox: that code is like pedaling on a fixed bike! (but yes, alternatives are verbose and worse)12:35
gatoxyay...... tests just ends..... couple of fails.... fixing12:37
gatoxralsina, ouch..... i'm having problems with the new OrderedDict :S...... fixing....12:43
ralsinagatox: really?12:46
gatoxralsina, yap..... i'm trying to figure it out why12:46
gatoxmaybe is something related to other stuff...... but failing with that (and just a coincidence)12:47
mandelok, time for my lunch12:51
=== mandel is now known as mandel|lunch
gatoxralsina, i found the problem.... it seems that the OrderedDict from twisted doesn't have the proper method implemented to be used with for12:56
ralsinagatox: how could that not trigger any test failures?13:04
ralsinagatox: in any case, maybe t can be used with for k in d.keys()13:04
gatoxralsina, that's what i did13:04
gatoxfacundobatista, ralsina now is ready: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/menulucid/+merge/129169 and with the orderedict from twisted fixed too13:04
ralsinagatox: cool13:05
facundobatistagatox, you keep changing the branch?13:09
gatoxfacundobatista, i found another problem with the OrderedDict, that's why13:09
gatoxfacundobatista, but now is final13:10
facundobatistagatox, sure?13:10
gatoxfacundobatista, 100%13:10
facundobatistagatox, ok13:10
ralsinagatox: sorry about the ordereddict breakage!13:10
gatoxralsina, no problem.... it wasn't a big thing13:11
gatoxpretty easy to find and fix13:11
ralsinagatox: it's what happens when I try to fix bugs I can't see :-)13:14
ralsinaand ... http://t.co/VdYiSl8Z13:20
ralsinacongrats gatox, mandel, and the rest of the team who's late ;-)13:20
gatox\o/13:20
chaselivingstoncongrats everyone!13:20
gatoxmandel|lunch, ralsina when you have a moment please: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/clickshare/+merge/12918813:32
ralsinagatox: sure13:37
ralsinagatox: you proposed it against the wrong package ;-)13:37
ralsinagatox: therefore 77390 lines (+76238/-0) 209 files modified (has conflicts)13:37
gatoxralsina, ohhhhhhh13:37
gatoxralsina, brain fart13:38
gatoxralsina, is a good thing that the weekend is close13:38
chaselivingstonralsina: remind me the command to run u1sdtool on mac?13:39
ralsinachaselivingston: well, it's u1sdtool I just have no idea where it lies ;-)13:40
chaselivingstonralsina: i've found it, but when i try to run it i just get -bash command not found13:40
ralsinachaselivingston: if you are in that folder, do ./u1sdtool13:40
chaselivingstonralsina: ah, I think that's right13:41
gatoxralsina, mandel|lunch now in the proper project: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/clickshare/+merge/12919913:41
karniralsina: hiya! my friend can't sign in to Mac beta. did check his username/pass by signing in to o.u.c. on mac, getting "The authentication failed"13:41
alecuhey, I forgot to say "hi everyone!"13:41
karniralsina: any hints?13:41
ralsinaalecu: hello!13:41
ralsinakarni: not really13:42
karniralsina: any logs he can provide/turn on?13:42
karniralsina: ok.. he changed his password, and it worked this time o_O13:42
ralsinakarni: MAGIC13:42
karniralsina: I don't know where the problem was, but yeah.. problem solved ;]13:42
karnihe did sign in to o.u.c with previous password no prob.13:43
karniKewl13:43
karniFWIW he changed his password for the same one, and it worked afterwards.13:44
karnialso, congratulations on Mac beta launch, team!13:44
gatoxdobey, ping13:51
ralsinaalecu: no need for 1-1, right? We talked already?13:51
gatoxdobey, do you know why this branch is bouncing?? tests are ok for mandel and me but failing on tarmac: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/u1-cp-publishapi13:52
alecuralsina: right13:53
ralsinagatox: dobey is on vacation13:55
gatoxralsina, oops.......13:55
gatoxralsina, do you know if tarmac is running with an older version of qt or something?13:56
alecugatox: we should try asking sidnei regarding tarmac13:56
dobeyi am on holiday, but the version of qt in quantal is 4.8.314:00
dobeygatox: those are the same 67 failures in QThread I asked about in another cp branch of yours a week or two ago14:01
gatoxdobey, thx.... keep enjoying your vacation.... i'll check what is going on.....14:01
ralsinadobey: go away and vacate14:03
ralsinadobey: or however the thing one does on a vacation is called14:04
dobeyi am14:04
ralsinagatox: +1 but get a good second review, mine was soft :-/14:05
gatoxralsina, yes.... i would ask mandel|lunch when he finish his lunch14:06
=== mandel|lunch is now known as mandel
gatoxnow14:06
gatoxjeje14:06
mandelgatox, you want what?14:06
mandelgatox, I finished in u1-internal first hehe14:06
gatoxmandel, a small review please: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/u1-cp-publishapi/+merge/12831614:07
mandelgatox, I already gave a +1 to that, tarmac is complaining about qthread14:07
ralsinamandel: here's a real bug that's been pissing me for a while bug #106551314:08
ubot5Launchpad bug 1065513 in Ubuntu One Control Panel "Double gathering info screen " [Medium,Triaged] https://launchpad.net/bugs/106551314:08
mandelralsina, ok, I'll tackle the other one first, then will more to that one :)14:08
gatoxmandel, sorry, this one: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/clickshare/+merge/12919914:08
ralsinamandel: ok14:09
mandelgatox, would be great if connect form pyqt could take extraparameters that would be appended to the ones emitted, like self.button.clicked.connect(self.set_name, '') I hate seeing lambdas everywhere ;)14:13
gatoxmandel, i'm starting to notice that.....14:14
gatoxjejee14:14
gatoxmandel, but you can't do that in pyqt14:14
gatoxmandel, or i'm not understanding what you say14:15
mandelgatox, I know.. that is why I used the second conditional, would be great if...14:15
gatoxahhhhhhh14:15
mandelgatox, it would make the api nicer :)14:15
gatoxmandel, i thought you were requesting a change14:15
mandelno no no14:15
* gatox start doing a pull request into pyqt because mandel ask14:15
gatoxjejjee14:15
mandellol14:15
ralsinamandel: can you give me an example? Because there is quite a bit of flexibility in connect :-)14:16
mandelralsina, for example: http://paste.ubuntu.com/1273294/14:17
mandelralsina, just to avoid using lambdas, but I agree with gatox, there is nothing we can do, right?14:18
mandelalecu, can you merge the following: lp:~mandel/avani/unity-lens-music.ubuntuone-purchase-take2 with your branch?14:19
mandelalecu, some of the string are wrong (the ui ones) and I fixed them according to the given design14:20
alecumandel: ack14:23
mandelgatox, branch lp:~diegosarmentero/ubuntuone-control-panel/clickshare have you ran the tests on !14:24
alecumandel: did you see the new checkbox in th design? it's called "forget payment details" (or something like that)14:24
mandelgatox, on Q I meant, sorry for the !14:24
alecugatox: I was not planning on including that.14:24
alecusorry14:24
gatoxmandel, yes..... i'm on Q14:25
alecumandel: I was not planning on including that.14:25
mandelalecu, wtf? when was there? and no, I have a design without it14:25
gatoxmandel, what are you seeing?14:25
mandelgatox, let be > to a file14:25
mandelalecu, and I agree, we are not doing that, we don't even have that in the rest api, do we14:26
* mandel does not want to have to do yet another ui element in nux14:26
alecumandel: right!14:26
alecumandel: it's on "the one and only 12.10 screen"14:26
mandelalecu, ok, you can ignore that14:26
alecumandel: it's called "remember my credit card details"14:27
mandelalecu,  let me fwd the real design14:27
mandelalecu, I already said no to that in the sprint :)14:27
alecumandel: oh, awesome.14:27
mandelalecu, just sent you the real thing14:27
mandelgatox, http://paste.ubuntu.com/1273319/14:29
mandelgatox, but maybe is my system that got bananas14:29
gatoxmandel, i'm not being able to run lint for u1-cp in Q neither14:30
gatoxmandel, but the tests pass14:30
ralsinamandel, alecu: scared me there for a bit :-)14:30
mandelgatox, yes, that I know..14:30
mandelralsina, nah, I already made sure we were not doing that hehehe14:31
mandelI was very very clear14:31
* mandel said no in nearly all languages => NO!14:31
mandelgatox, +1 hoping that if there are real lint issues tarmac will tell us we are stupid14:35
gatoxmandel, na, they are not real if you check14:36
mandelgatox, I got lost in the verbal diarrhea that lint has.14:36
=== m_conley_away is now known as m_conley
mandelgatox, that sync menu has lots of blackguard compatibility issues =>  bug #106527214:46
ubot5Error: Launchpad bug 1065272 could not be found14:46
mandeleasy to fix though14:47
=== m_conley is now known as m_conley_away
briancurtinmumble in 2'?14:58
joshuahooverbriancurtin: just the question i was going to ask15:00
gatoxbrb15:00
ralsinaoh,mumble, right15:00
ralsinasorry, been a little distracted15:00
mandelsorry, joining15:02
ralsinagatox, alecu, mmcc mumble15:02
gatoxmmcc, ralsina when you have a moment, another review: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/deflated-size/+merge/129215 (now i'm moving to windows)15:22
briancurtinbrb, need to grab some coffee15:23
gatoxbriancurtin, i'm going to have lunch now..... and we can talk after that what do you need..... or tell me what you have been trying so i start debugging that here too.... do you agree?15:23
ralsinabriancurtin, alecu: I have assigned to you a few bugs that are the ones support is getting questions about15:30
ralsinabriancurtin: yours look easy15:30
ralsinaalecu: yours looks hard15:30
alecuralsina: ack15:31
mmccralsina: I don't see a welcome page bug in my assigned bugs, did you say you assigned it to me?15:31
ralsinabriancurtin: one interesting bit is that we are still getting valicert questions. I am not sure if we ever released with the cert bundled on windows. If we did, then it's not working thugh15:31
ralsinammcc: let me track it15:31
mmccalso, gatox I am looking at your deflated-size branch now15:31
gatoxmmcc, great, thankx15:32
ralsinammcc: https://bugs.launchpad.net/ubuntuone-control-panel/+bug/106551415:32
ubot5Ubuntu bug 1065514 in Ubuntu One Control Panel "Mac welcome screen" [Undecided,New]15:32
mmccbtw, I think I'd like to look at client test running soon. it's slow everywhere, and totally broken on osx15:32
ralsinammcc: fixing it on osx and then getting a darwin jenkins souds like something we really should be doing15:33
mmccralsina: yes.15:33
ralsinaand remember, team, the bug situation can always be worse http://feeds.gawker.com/~r/gawker/full/~3/1gnDhJEMjp4/heres-footage-of-the-live-roach+eating-contest-that-killed-the-winner15:34
* mmcc is NOT clicking that link15:34
mmccthank god for readable URLs15:34
briancurtinralsina: once we get this other win stuff figured out, i'll look at how the installer is built in regards to certs15:34
ralsinabriancurtin: awesome15:35
ralsinabriancurtin: since we are not going to do another release before the 4-beta ...15:35
mmccralsina: that welcome screen bug -> I think he just means the control panel main window. it has a rounded white rect inside a grey background. Although I agree that it's not like the default mac look, it is on-brand, and there isn't a real guideline for 'mac look' anymore anyway.15:36
briancurtingatox: i've been poking around the code and following log files and trying to see how this CredentialsError is coming up. i'm going to go back and look at the dirspec changes to binary finding, then try to debug SSO in isolation (inside credentials.py) again15:37
gatoxbriancurtin, ok..... lunch and i'll start trying to execute u1 in windows and track the bug15:39
=== gatox is now known as gatox_lunch
briancurtingatox_lunch: sounds good15:39
mmccgatox +1 on that deflated-size branch, thanks15:41
mmccbriancurtin: how are you running things when you hit problems? I'm about to kill my credentials and try running just control-panel15:42
briancurtinmmcc: i'll put my details on a paste in 1', too much to type here15:42
mmccbriancurtin: cool ,thanks15:43
=== m_conley_away is now known as m_conley
mmccwhere do the logs go in windows? I see the special folder names in dirspec but I don't know where to find those in the filesystem :\15:50
briancurtinmmcc: C:\Users\brian\AppData\Local\xdg\cache\ubuntuone\log15:51
mmccoh, that's hidden in the explorer?15:51
briancurtinmmcc: yeah i think AppData is hidden15:52
ralsinammcc: ok!15:52
mmccoh it's even hidden from 'dir', tricky!15:52
ralsinammcc: put that same explanation and a wontfix status15:52
mmccralsina: ok15:53
ralsinammcc you can use %LOCALAPPDATA% in windows explorer (or something similar)15:53
briancurtinmmcc: still working on your doc...now u1cp is being weird as i try to document what im doing15:54
mmccralsina: oh on second thought he probably means this welcome screen: https://lh3.googleusercontent.com/-wpAFFGeAPzKkY7KFyiNmj01uz7KKrnkzVqoy25LuoJuIdXU1tRKfOnjDASSKo6ycwLmAiCyL7RmjFufhU1KsCQmrdBkhikgC8fxRTY2CTH9R_W0hKI15:54
mmccthe one that says welcome :)15:55
ralsinahahaha15:55
mmccsame response though15:55
mandelralsina, gatox_lunch, please can you review the following: https://code.launchpad.net/~mandel/ubuntuone-client/spawn-cp/+merge/12923016:00
gatox_lunchmandel, will do after lunch16:01
briancurtinmmcc: here's the setup: https://pastebin.canonical.com/76354/16:02
mmccgym, I have no logs in %LOCALAPPDATA%\ubuntuone16:02
mmccgym was supposed to be hrm.16:02
mmccso briancurtin, are environment variables inherited by child processes on windows?16:04
briancurtinmmcc: this is what i was just thinking about 1' ago...no, you need to pass it on, otherwise apps get a clean slate16:04
mmccthe import errors you see when just running cp by itself should be avoided because it uses 'python ' + sso whatever16:04
mmccoh snap16:04
mmccwell there you go16:04
mmccthe whole deal with pre-pending 'python' to the binary paths was so that we get the buildout python16:05
briancurtinyeah it kind of clicked in my head when i saw it complain about twisted16:05
mmccbut if the child process doesn't have the path set right, then boom16:05
mmccand that's why sso-qt isn't working either16:05
mmccbecause sso uses the same trick to use the buildout python to run sso-qt16:05
mmccwell that's what you get when a guy who has avoided windows for 30 years tries to write windows code :\16:06
briancurtinmmcc: not your fault. i should have been on the lookout (also should have been able to diagnose this a while ago...)16:07
briancurtinmmcc: your changes were in dirspec, or was that just finding the binaries and not running them?16:07
mmccbriancurtin: dirspec finds 'em, other code runs it16:07
mmccbriancurtin: I'll dig up a list of places now. I think there is one in sso and one in cp or client16:08
mmccsso-client - utils/__init__.py, line 126 , and ubuntuone-client syncdaemon/utils.py16:10
briancurtinmmcc: yep i'm looking at the sso one now16:11
mmccjust those two places. control panel imports from those places16:11
mmccshould be the exact same fix in both places. they're almost identical16:11
mmccok, brb with more coffee16:11
mandelok, EOD, catch you all tom!16:44
ralsinabye mandel!16:45
=== gatox_lunch is now known as gatox
gatoxmandel, bye16:45
mmccwhy do we only have upload info for the sync menu and not downloads also?16:47
gatoxmmcc, you should ask the designers i think16:48
mmccgatox: not just the ubuntu sync menu but also the control-panel sys tray one…16:49
ralsinammcc the data is the same16:49
ralsinammcc: syncdaemon collects the data, describes a menu and either u1cp or sync-menu draws it16:50
mmccralsina: yeah, I was thinking maybe the decisions had been made differently for each case16:50
gatoxmmcc, yes, what i mean is that the design team creates the spec like that..... let me give you the design doc in pm16:50
mmccsince the sys tray one was older…16:51
mmccthanks gatox16:51
mmccthat osx screenshot is just photoshop, right?16:52
gatoxmmcc, yes16:53
mmcchmm, that slide set just says 'files that are currently in transfer', it doesn't say if they're uploads or downloads16:53
mmccok, so as far as I can tell, using QWidgetAction to show a progress bar doesn't work on osx16:55
gatoxmmcc, maybe lisettte can clarify that16:55
mmcceven if I just show the progress bar (no layout, no label, just the bar), it shows nothing16:55
lisetttegatox: what do you want me to clarify?16:56
gatoxmmcc, can you send me an screenshot..... maybe we are having the same problem as in ubuntu where we needed to use the number instead the progress bar16:56
gatoxlisettte, mmcc has some question about the upload/download info in the menu16:56
mmcclisettte: the flyout menu that shows current transfers, in the code now it only shows uploads, no downloads. was that intended, or should it show both?16:57
mmccgatox: I will get a screenshot for you in a minute, but it's easy to imagine - as it is, it will show the label and text percentage but no progress bar, and no space for one. if I only put in the progress bar, it just shows nothing (there's vertical space for a menu item but nothing is drawn there)17:00
gatoxmmcc, yes..... the same problem..... so we need to use the saame code in mac as in ubuntu17:01
chaselivingstonmmcc: the mac client is for intel macs only right? no power pc support?17:02
mmccchaselivingston: yes, no ppc17:03
chaselivingstonmmcc: cool, thanks17:03
mmccgatox: which code is that?17:04
ralsinammcc, gatox: on mac we have the same problem as in ubuntu, the tray menu is actually out of process17:05
mmccralsina: that seems unrelated, I'm confused17:06
gatoxmmcc, is actually the same code.... if the progress bar doesn't work it should show just the text..... i'm debugging u1 on windows now..... if you can send me the screenshot it would be helpful17:07
mmccgatox: it does show just the text, that's the problem. I want it to show the progress bar17:08
mmccgatox: what are you debugging on windows now?17:09
mmccI have a branch mostly done that fixes the sync transfers menu on osx, and need to test it on windows. I was just hoping to also get the progress bars showing, but it sounds like that's a known problem with qt?17:10
gatoxmmcc, ahhhh..... well.... i think ralsina is right about that...... and maybe is not possible to do it when integrating with the systray17:11
gatoxmmcc, the credentials problem.... as was discussed in the weekly call17:11
mmccgatox: check with briancurtin, I think we figured that out while you were at lunch17:12
gatoxmmcc, briancurtin really? please tell me17:12
mmccgatox, I still don't understand what ralsina said! :) The progress bar seems to be an issue with qt menus on macs, but whether or not it's in a separate process shouldn't matter17:13
mmccgatox: see the scroll back, it's because windows apps don't inherit environment variables, so prepending 'python' to the path does not give us the buildout python as intended17:13
briancurtinmmcc: i'm an idiot and mixed myself up...they *do* inherit17:14
mmccgatox, so if you start sso separately like briancurtin did, control panel will find it via the TCPactivation, but it'll eventually fail when sso tries to launch sso-login-qt17:14
mmccbriancurtin: oh no :( and there I was all convinced it was solved17:14
gatoxmmcc, the thing that is a different process it's because it seems that mac handle the systray menus in a different way (as ubuntu does)...... so you probably are not having a qt menu there...... but something that makes the qt menu compatible with mac, so you can't use all the things from qt17:14
gatoxbriancurtin, so i should keep debugging this?17:15
briancurtinmmcc: yeah, im sure its something around that, though. it really cant be anything else17:15
mmccbriancurtin: well, I still think that's the source of the issues. I'd poke at the get_bin_cmd stuff and see if maybe prepending 'python -v ' gives clues or whatever17:15
mmcclet me know if I can be of more use. for now I'll go back to sys tray stuff17:15
briancurtingatox: i think for now you can probably go back to whatever else. if *this* doesn't turn out to be the real issue, then maybe i'll try to bring you back to the windows dark side17:16
gatoxbriancurtin, ok, no problem... i'll keep fixing syncmenu and shares issues...... let me know as soon as you need me :D17:16
gatoxalecu, ping17:43
gatoxralsina, ping17:44
* briancurtin lunch17:47
=== yofel_ is now known as yofel
mmccok, so I can get the cp systray menu to work on osx the same way it should on linux - except that nothing will update while you hold the menu open like it does on linux, because of how Qt interacts with the osx menu system18:04
gatoxmmcc, :S18:04
mmccgatox: yup18:05
mmccalso, the menu items can't be set to disabled, because of a qt bug that will be fixed in 4.8.4: https://bugreports.qt-project.org/browse/QTBUG-2554418:12
* gatox is waiting for Qt5...... so excited! \o/18:13
mmcchrm, I'm not convinced that their fix actually fixes this18:16
gatoxmmcc, well.... at least digia has declared to improve the integration with mac18:17
mmccgatox, that's good news I guess. Doesn't help me fix this stuff now, though :\18:17
gatoxmmcc, jeje no..... for that you have to blame the people who didn't invent the time machines yet18:18
mmccgatox or I could blame the people who broke menu enabling in qt/mac, because apparently it used to work :)18:19
gatoxor that18:19
mmccinteresting, qt's systemtrayicon can be compiled with support for growl18:25
mmcccan't tell if it was in the bottle from brew though18:26
alecugatox: pong18:29
mmccoh yeah, I see what's happening here. Qt is re-creating the menu items on every update, even when I don't re-create the python menu items :(18:30
gatoxalecu, hi....... i'm looking at this bug: https://bugs.launchpad.net/ubuntuone-client/+bug/106527218:31
ubot5Error: ubuntu bug 1065272 not found18:31
gatoxalecu, it seems that spawn_command_line_async is not supported in older versions..... but that was there from before..... although that report is not using the last version because we are not spawning ubuntuone-installer anymore18:32
gatoxalecu, do you know what should be used for backward compatibility instead of spawn_command_line_async?18:32
alecugatox: no. But I see that mandel has proposed a branch for that bug.... what do you think of it?18:33
gatoxalecu, ahhhhh..... i had that on hold to start working on it.... i didn't know that mandel propose a branch for that because he show me the issue and it didn't has anything at that moment18:35
* gatox refresh the page18:35
alecugatox: :-)18:36
gatoxalecu, +1 from me18:36
* gatox goes back to his cp branches18:37
alecugatox: please, when reviewing this kind of branches make sure to run the tests before approving, and since this affects old versions, try to run them in a VM with the old version too.18:39
gatoxalecu, ack...... i'll install a lucid vm now18:40
gatoxalecu, at least for Q they work18:41
mmccgatox, btw please let me know if you're working on anything in cp that affects the sys tray stuff. thanks!18:43
alecugatox: for the backporting work I had to make a lot of VMs, and now I have from L to Q. It's really handy to test this kind of stuff.18:43
mmccand shared folders! use shared folders18:43
gatoxalecu, ack..... i was on precise with a Q vm..... but now i'm in Q too......i'll install some old vms18:44
gatoxmmcc, no.... i'm working in stuff related to the shares tab18:44
mmccI was using shared folders, then upgraded and forgot to reinstall guest additions, and it broke, I just set it back up and I'm so happy18:44
mmccgatox: cool, thanks18:45
alecummcc: yes, shared folders is great. I have the source directory mapped to every vm, so the vms get to run the latest version of the code every time.18:54
alecugatox: ^^^18:55
mmccalecu: it also saves me space on my tiny SSD. :)18:55
alecummcc: how tiny?18:55
mmccunfortunately it doesn't work super cleanly on windows yet, since buildout generates a different set of executables18:55
gatoxalecu, nicceeeee18:55
gatoxi do that too18:56
mmccalecu, 120GB of usable space, I think 128 in the chips18:56
gatoxmmcc, it works fine on windows..... i've always use that on windows18:56
gatoxmmcc, ahhhhh talking about other thing18:56
alecummcc: I've got the same on my mac, and I kind of regret it :-(18:56
mmccgatox, yeah, running from source on windows because of the buildout 'python.exe' and such18:56
mmccalecu, I don't regret it yet, but I do need to set up some networked storage or something18:57
alecummcc: now I'm looking at this: http://eshop.macsales.com/shop/SSD/OWC/Aura_Pro_Air_201118:57
mmccalecu: egads!18:58
mmccnot going near this thing with a screwdriver, at least until the AppleCare warranty expires18:58
alecummcc: lol18:59
alecummcc: I think I may shell out for the 24018:59
alecumy warranty expires on may next year though...18:59
mmccI had a job in high school that was mostly unscrewing PC cases and re-seating boards, and reinstalling windows. I'm happy with my sealed boxes now :)18:59
mmccAlthough I do wish they were upgradeable. Life is complex.19:00
mmccSo, I'm beginning to think I should just do this sync menu in pyobjc. anyone want to talk me back from the edge?19:00
mmccI already did a test that works with showing the sync status via the twisted IPC, so twisted and pyobjc do work19:01
alecummcc: do you have that in a branch I can peek?19:01
alecummcc: a priori it sounds like a reasonable idea to me.19:02
mmccalecu, :) it's a hacky mess on top of an unrelated pyobjc example - do you just want to look at the relevant source or do you want to try it out?19:02
alecummcc: but perhaps you can send a mail to u1-discuss with a further description of the problem and why not using Qt is a better idea.19:02
mmccalecu, but that will force me to think it through clearly!19:03
mmccwhich is an excellent idea, so I'll go do that19:03
alecummcc: I just want to have an idea at how much code we'll have to maintain going forward :-)19:03
alecummcc: so, a broken branch sounds ok too19:03
mmccalecu: an entirely reasonable question. in particular, the reactor is of some concern. it doesn't use the "CFReactor" which is listed as unmaintained, it uses the 'threaded select' reactor19:04
alecummcc: oh, and this would be a separate process? I was guessing it could be a objc library that was used from the SD process, but yes, reactors.19:05
mmccalecu, yes it's a separate process, which is necessary on osx anyway, because we want to not show the dock icon all the time19:06
alecuor ran inside the control panel process.19:06
alecummcc: right, we want the dock icon when the control panel is shown only.19:06
mmccalecu: yep, so the menu will be a separate process that is background and the control panel will be foreground19:07
alecummcc: my opinion is that qt is great for most ui, but it gets hairy when doing platform specific bits like this. (well, not only qt, but every cross platform toolkit I've worked with)19:07
alecummcc: on the other hand, we may take a look at qt / pyqt innards, and if it's easier, try to come up with a patch that we can submit upstream.19:09
mmccwell, I'm looking at the innards now… live updating is probably possible but a pretty big change19:10
alecummcc: perhaps ralsina or gatox or any other qt fan can shed some insight on that.19:10
* alecu just realizes he's wearing his Qt shirt today :P19:10
aleculiteraly.19:10
mmccha19:10
ralsinaalecu: you have  a QT shirt? I have to complain to the secret norwegian maling list19:10
gatoxralsina, i have one that too19:11
ralsinaDAMN YOU ALL19:11
gatoxmmcc, the patch should be submitted to Qt....19:11
ralsinaI hav one of a giant octopus destroying a lighthouse19:11
ralsinaanyway19:11
ralsinareading backlog...19:11
mmccgatox: if it were up to me, I will avoid changing qt code. I don't want to have to recompile it even once19:11
mmccbut I'll try to make a rational decision :)19:12
ralsinammcc: why in pyobjc? really, tell me :-)19:12
* gatox has been debugging and touching qt code in the past..... and he find out weird things19:13
mmccralsina - here are the menu item things that don't work in Qt/mac: live updating while you hold the menu open, setting a menu action to be disabled (really!), QWidgetAction,19:14
ralsinagatox: Qt is over 15 years old. It's full of evil stuff. Evil C++ stuff.19:14
mmccI think I'm forgetting one more19:14
ralsinammcc: that's because the sync menu is out of process. It's done by the system's UI19:14
ralsinammcc: it has more or less the same limitations sync-indicator has19:14
mmccno that's it, a couple of other things are broken in the menu but not qt's fault19:15
ralsinammcc: athough disabling items is surprising19:15
mmccralsina: disabling is a straight up qt bug,  https://bugreports.qt-project.org/browse/QTBUG-2554419:15
ralsinammcc: ok, the others sound more or less reasonable as limitations19:15
ralsinammcc: ie: while popping the menu, you are probably in a local event loop and can't update stuff19:16
mmcchrm. on osx, qsystemtrayicon just uses the NSStatusBar API, and I don't think it's in a separate process19:17
mmccyou can't update stuff because that code just doesn't handle updates - when the menu is shown, it creates a one-off copy of your QMenu hierarchy as NSMenu's and shows them19:17
ralsinammcc: ok, in that case, it does make sense to do it as pyobjc19:17
ralsinammcc: you can just reimplement most of systray19:18
ralsinasystray.py that is19:18
mmccat the beginning of menuNeedsUpdate:, it clears everything and regenerates all the NSMenuItems… and doesn't give us hooks to change them :(19:18
mmccyeah, it should be very similar19:18
mmccbtw, for what it's worth, dropbox now has a very different non-menu thingy for their notification icon, at least on osx19:19
mmccit's in their version 1.519:19
mmccoh, yeah, looking at qsystemtrayicon_mac.mm, no wonder QWidgetAction doesn't work, if you set the widget on an item it'll just get ignored… 'widget' doesn't even appear in that file19:21
mmccwish I'd looked at their code before trying it.19:21
mmccok, I'm still going to write up that email, just to have all the pros/cons in the same place19:21
gatoxmmcc, ralsina when you have a moment please: https://code.launchpad.net/~diegosarmentero/ubuntuone-control-panel/not-shared-with-me/+merge/12928419:22
ralsinagatox: next monday is good? ;-)19:23
ralsinagatox: j/k on it19:23
gatoxralsina, is good..... because nowwwwwww.... i'm going to stop proposing branches.... and try to figure it out why tarmac the tests in tarmac are failing in a way that only happend there..... i have 3 u1-cp branches on hold at this momento for that19:24
ralsinagatox: qt version looks like a reason19:24
gatoxralsina, but it's the same one i have here19:25
ralsinagatox: since it seems to be a change in QThread19:25
ralsinaoh, well19:25
gatoxralsina, and is running on Q.... as i do19:25
gatoxif anyone has a minute, please review this branch (REALLY SMALL)... mike already approve it: https://code.launchpad.net/~diegosarmentero/ubuntuone-client/deflated-size/+merge/12921519:37
mmccholy cow it's raining19:40
* gatox tries to find sense to the universe again19:44
ralsinagatox: in not-shared-with-me ... maybe we could use "ROOT" and whatever UDFs say, instead of just "ROOT"? Would make the tests a bit more robust19:47
gatoxralsina, ack..... udf says UDF19:47
gatoxralsina, i'll change one of them to udf19:47
ralsinagatox: cool, since you usually have 2, one root, one udf is good19:48
gatoxin the name of everything that is good and pure, tell me why! please tell me why!19:48
* gatox lost his temper19:48
gatoxjejejje19:48
gatoxthat is related to the bouncing branches19:48
ralsinagatox: guessed as much19:48
ralsinagatox: you leave in 38 minutes. Get back to it in the morning.19:48
mmccgatox: ralsina I was looking at those strings too. I couldn't find what generates 'SHARE' anywhere -- I see this in volume_manager.py -- self.__dict__['type'] = 'Share'19:48
ralsinammcc: ... interesting...19:49
mmccI figured my ack skills were failing me. But when I IRL test it, it does work!19:49
mmccgetting uppercased somewhere I guess?19:49
ralsinammcc: yeah, probably19:50
ralsina'Root' 'Share' 'Shared' and 'UDF'19:51
gatoxralsina, the thing with the bouncing branches...... is that i can't reproduce it19:51
mmccok, time for my lunch here19:51
gatoxralsina, that's my biggest problem19:51
beunogatox, a branch is bouncing in tarmac19:52
beunobut not locally?19:52
ralsinabeuno: yes, tests are failing only on tarmac19:52
beunoralsina, gatox, poke sidnei to give you ssh access to tarmac19:52
gatoxbeuno, yep..... tests pass here in 2 machines and in mandel's too.... but not in tarmac..... and tarmac is in q (as me) and using the same qt versio19:52
beunorun manually, debug19:52
gatoxbeuno, will do that19:52
ralsinagatox: best idea would be to just ssh into tarmac ,but I don't have creds19:53
gatoxralsina, yes...... i'll poke sidnei as beuno said19:53
gatoxralsina, the branch has been updated to include UDF19:54
ralsinagatox: awesome, lookging in 1'19:58
briancurtinYESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS20:04
gatoxbriancurtin, WHAT HAPPEND??!!20:05
gatoxTELL!!20:05
gatoxbriancurtin, you figure it out?20:05
briancurtingatox: yep20:05
gatoxbriancurtin, awesome!!! what was it?20:05
briancurtingatox: at least to login with creds. of course this is a one-line change20:05
briancurtingatox: has to do with the qt spawn_process inserting the python.exe to the front of the args rather than replacing it20:06
briancurtini think it may be better to change this in another spot, but at least its actually working20:07
ralsinaI have to leave for a doctor's appointment, so slightly early EOD for me.20:21
ralsinaSee you guys tomorrow!20:22
gatoxralsina, bye!20:23
gatoxok..... eod here too....... see yyou tomorrow!20:34
mmccbriancurtin: hooray. and yeah, that makes sense. it blindly inserts python.exe, huh21:07
briancurtinmmcc: yep. i think this is going to be the fix but could use a look on mac: http://bazaar.launchpad.net/~brian.curtin/ubuntu-sso-client/correct-subprocess-args/revision/100621:08
mmccbriancurtin: well, that certainly looks like it won't change the darwin behavior at all :)21:09
briancurtini am shaking my head right now...21:10
briancurtini think i need one or more beers21:11
mmccyeah, those cases where it takes a week to find a one-line fix - I'm not a real doctor but in this case I can prescribe dark beer.21:13
briancurtinall i drink are stouts and porters so i think this can be cured21:14
=== m_conley is now known as m_conley_away
mmcchrm, method names like "addItemWithTitle_action_keyEquivalent_" were not made for pep8-compliance21:48
=== eu is now known as Guest45191
=== Guest45191 is now known as adorilson
=== lifeless_ is now known as lifeless
mmccok, time to go23:31

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