/srv/irclogs.ubuntu.com/2009/12/18/#launchpad-dev.txt

mwhudsonlunchtime00:07
pooliespm: so is it all back now?00:25
spmpoolie: yes00:25
pooliecould you please tell identica that?00:26
spmsure. give me a few to work my way thru the howto of that... ;-)00:27
pooliego to identi.ca00:28
poolieclick login00:28
spmyou're enjoying this.... ;-)00:30
poolieand you're ok from there?00:30
poolielogin as launchpadstatus00:31
pooliethen type in the little bittum00:31
spmright. I'm in. now for some pithy statement00:32
spmgosh. that's almost easy.00:35
jmlhmm. thumper is no longer present.00:56
jmlwhat's the ETA for PQM opening?00:57
* thumper is present01:14
jmlthumper, oh. I was just thinking about how, with your recent changes to the comment form on the review page, it might be nice to also have an MP status field there01:19
thumperjml: nah01:19
thumperjml: not until I split out the code review status from the merge status01:20
thumperwhich I still want to do01:20
thumperI'm going to close irc now to focus on pdr01:21
jmlthumper, oh right.01:21
jmlthumper, ok :)01:21
thumperif anyone needs me because everything has blown up, call or text01:21
jmlthumper, kerblammo01:22
jmlthumper, I mean, good bye :)01:22
Pilkybeuno: you around?01:44
* thumper signs off for the year04:22
jmlthumper, ciao04:24
jmlthumper, merry christmas & a happy new year.04:24
* mwhudson EOWs05:25
jtvmwhudson: enjoy your we05:25
=== abentley1 is now known as abentley
pooliespm, still here? spam - https://edge.launchpad.net/buyviagra07:31
spmoookay. that's weird.07:32
spmgone. the weirdness was the user account was already suspended; had to reset some of the "user" fields for the projet to registry07:32
pooliethanks07:35
spmpoolie: fwiw. I do 10am - 7pm these days. Probably till we're out of daylight savings.07:37
poolieoh ok07:37
spmcovers the gap 'tween michael and tom, as it were.07:37
jmljelmer, hi07:37
=== spm changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 4 of 3.1.12 | PQM is open; RM: danilos | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in #launchpad-reviews | Use http://paste.ubuntu.com/ for pastes
jmlspm, wuuu07:48
jmlspm, in danilos still RM?07:49
henningejml: sure, it's still week 4, isn't it.07:49
henninge?07:49
jmlhenninge, then why is PQM open?07:49
spmjml: I figure it's more appropriate for him to demote himself out of the RM role ( danilo_ see topic) :-)07:49
henningejml: good point07:50
danilo_jml, well, I believe the process was to stay the RM until the next release; i.e. there might be CPs and such07:50
henningejml: you are saying: No more mangement needed once pqm is open?07:50
jmldanilo_, ahh, ok.07:50
danilo_jml, I am not sure though, it's not that clear, so let's clarify that for the next one07:51
jmlhenninge, no more release management is needed until the next release, which is next year.07:51
=== danilo_ is now known as danilos
jmlhenninge, which is aaaaaages away.07:51
danilosjml, years even :)07:51
henningeyeah07:51
henningealthough not as bad as a few years back where it might have been in the next millenium!07:52
danilosjml, btw, we are opening PQM because there's no need for a re-roll, at least there was none so far07:52
daniloshenninge, but people still dispute when was that exactly ;)07:52
henningedanilos: talking about days or years?07:52
henningeI know, officially it was 2000/200107:53
jmldanilos, even more controversially, when was the first Easter of the new millenium? :P07:53
henningejml: .... don't .... open ..... box ..... it's Pandorra's .....07:54
danilosjml, heh :)07:54
* spm opts for the simple answer - when he had the easter long weekend; which year is irrelevant. ;-)07:55
jmlspm, bah, they didn't even give us an extra day off for the millenium07:56
jmlOR the olympics.07:56
jmlshocking really07:56
spmjtv, et al: one minor issue on that approve-imports - "-q" <== what's with the warning's??? ;-)07:56
spmjml: truly07:56
jtvspm: it's an operational problem situation that happens once every few months that requires special intervention from a human who understands what's going on with these packages.07:57
jtvspm: in principle we could turn these into email notifications, but it's just one more thing that could break without us ever noticing07:58
spmjtv: :-) I'm teasing. this is endemic across all of LP cronscripts. -q (ie Be QUIET!) doesn't stop warning's - which it should; we should only see ERRORs or higher.07:59
jtvspm: we just shouldn't issue warnings for things that aren't worth one08:00
spmon the more ..... painful scripts that refuse to be quiet we throw to logs and let scriptactivity catch 'em08:00
spmright08:00
* jml submits a bug fix08:03
spmjtv: where this particular is even worse - normally all warnings should be STDOUT; ERRORS usually to STDERR; CRITICALS certainly to STDERR. in LP's case; all scripts dump to stderr; which means if we throw to log - we will NOT know if a script is barfing (stack trace etc) unless we go looking for it. This is a Bad Thing(tm).08:06
jtvspm: indeed... we've got the weirdest, most mundane stuff going out to stderr for some reason08:07
adiroibandanilos: do you have time for a review regarding the distroseries access when translations are hidden? I went further than fixing the bug and trying to refactor some code... again08:19
danilosadiroiban, heh, you are unstoppable :)08:31
danilosadiroiban, sure08:31
adiroibanlp:~adiroiban/launchpad/bug-49743808:32
* jtv cheers for adiroiban08:32
adiroibanwell, holydays are comming08:32
danilosadiroiban, do you have an MP as well? (that's much easier because it keeps the patch up to date)08:32
adiroibandanilos: nope.08:33
adiroibani am not sure I did the right thing08:34
adiroibanand this is why did not pushed it as a MP08:34
adiroibanit's about checkTranslationsViewable08:34
adiroibanas it is implemented in 2 classes08:34
adiroibanand each class is calling the other class method08:34
adiroibani tried to break that chain and define all the logic required by checkTranslationsViewable in a single place08:35
adiroibannot it is split between registry and translations08:35
adiroibans/not/now/08:37
jtvadiroiban: not sure what you mean by each class calling the method on the other...  all browser code that needs to make this check delegates to the distroseries model class, no?08:39
adiroibancheckTranslationsViewable is defined in registry.model.distroseries and also in translations.browser.distroseries08:41
adiroibanwhy not have it defined only in registry.model.distroseries ?08:42
adiroibanas checkTranslationsViewable from registry.model.distroseries is calling checkTranslationsViewable from registry.model.distroseries08:43
danilosadiroiban, first of all, when you inherit a permission, you probably want to use it via super() (i.e. in AdminDistroSeriesLanguage)08:51
danilosadiroiban, however, since the two permissions are on different objects, you should base AdminDistroSeriesLanguage on AuthorizationBase and keep the code as it is08:51
danilosuhm, that was for AdminDistroSeriesTranslations08:52
danilosadiroiban, for AdminDSL, I think it makes more sense to use AdminDistroSeriesTranslations there, even though they are identical right now08:53
jtvdo we have any admin'ing on dsls?08:53
adiroibanadiroiban: ok. I will use AuthorizationBase and base DSL to DS08:54
danilosjtv, well, base both off AuthorizationBase, but call DS one in DSL implementation, if you understand what I mean :)08:55
jtvdanilos: ah yes that's better, thanks :)08:56
danilosjtv, perhaps we don't yet, but it doesn't hurt to improve it... we also allow admins to take a look at translations for non-open distroseries08:56
adiroibandanilos: should we also change this code then?08:56
adiroibanclass AdminDistributionTranslations(OnlyRosettaExpertsAndAdmins, EditDistributionByDistroOwnersOrAdmins)08:56
danilosadiroiban, no08:57
danilosadiroiban, that's exactly the point I am trying to make08:57
danilosadiroiban, i.e. that one inherits OnlyRosettaExpertsAndAdmins, which doesn't depend on self.obj at all, only on the passed in user08:57
danilosadiroiban, and on a permission which has a compatible object (self.obj is IDistribution in both)08:58
adiroibandanilos: ok :)08:59
danilosadiroiban, so, that one is fine... but eg. we can't add AdminDistroSeriesTranslations to that list though, because DistroSeries and Distribution are different objects :)08:59
adiroibanthat's true09:00
adiroibanmy idea was to make thinks simple, by always inheriting AuthorizationBase, when we are going to overwrite checkAuthenticated09:02
adiroibanthings simpler09:04
jelmerjml: hi09:04
mrevellMorning!09:07
wgrantbigjools: It works! Thanks.09:08
* noodles775 thinks bigjools is probably stuffing as much wood into his heater as he can right now...09:09
* wgrant would prefer that to the weather we had here on Wednesday.09:11
noodles775how hot did it get?09:12
wgrantOnly 39°C down here.09:12
noodles775!09:12
wgrantHopefully we'll have no 45°C days this summer...09:12
bigjoolsnoodles775: is quite right09:13
bigjoolswgrant: you got a 3.0 package in?09:13
wgrantbigjools: I tried one in my PPA, and one was synced a couple of hours ago.09:14
bigjoolswoohoo09:14
wgrantBut gina doesn't seem happy.09:14
wgrantIs iron not done?09:14
bigjoolshmmm I asked for all 409:14
wgrantThe diff worked, though.09:17
wgrantNot sure where that is run.09:17
bigjoolswgrant: what makes you think gina is not happy?09:17
wgrantbigjools: It's not imported anything v3, yet you said 11 hours ago it was upgraded everywhere.09:18
wgrantAnd I thought it was running four times a day now, although even if it's two it's still close.09:19
bigjoolswgrant: switch wasn't thrown until 0350 UTC09:19
bigjoolsyrsh it's 409:19
wgrantbigjools: gina is disobedient.09:19
wgrantAnd does not obey such switches.09:19
bigjoolsoh of course09:19
bigjoolsI'll get the log file checked09:20
wgrantThanks.09:20
adiroibandanilos: those changes are not sound, so I will push a new revision. But I am not happy with the current way of implement the security check for distroseries translations10:34
danilosadiroiban, well, there are many things I am not happy with in the code, but what works today is always much better than what might be there in the future :)10:52
adiroibanI am not sure if moving the security checks in the model is the right thing to solve the problem10:54
danilosadiroiban, btw, sorry, I had a call so couldn't continue looking at it10:54
adiroibandanilos: np10:54
danilosadiroiban, so, in general, I am not sure why do you need permissions on the model here?10:56
danilosadiroiban, what we should have is launchpad.View permission always allow those with launchpad.TranslationsAdmin permission10:56
danilosadiroiban, at least for all the translations objects10:56
adiroibanin the model for distroseries we have checkTranslationsViewable, which raised an exception if those translations should not be displayed to the user11:00
adiroibanand showing or hiding the translations depends on the user11:00
danilosadiroiban, so, that approach is ugly :)11:03
adiroibanand right now, before calling that fuction, the view checks if the users have the rights to see the translations and if does, that method will not be called11:03
adiroibanand instead of checking for permission in a single place (like security proxy)11:04
adiroibanwe check in the view and the model (beside the usual check from the security proxy)11:04
danilosadiroiban, well, it doesn't sound as something too hard to fix, except that we'd have to do it for all the objects we are rendering in a single distroseries (i.e. pofiles, potemplates, DSLs, templatesets, etc.)11:06
adiroibanyes, and there are also some test that will fail11:07
adiroibani will try to fix it, but in another branch11:07
danilosadiroiban, basically, we'd need a generic permission for all of these to allow those with check_permission(TranslationsAdmin), but for objects which can be somewhere else (i.e. pofiles and potemplates can be in a product), we'd have to have custom permissions11:07
danilosadiroiban, yeah, please keep the fixes separate from refactoring, that makes it much simpler11:07
adiroibandanilos: another note. I think we should stop using admin_browser and switch to an translationsadmin_brower, or better to rosettaexpertes_browser and distrotranslationsadmin_browser11:11
adiroibanmaybe we can find shorter names11:12
danilosadiroiban, we should, true11:12
danilosadiroiban, many tests might need rewriting though11:12
adiroibani think that for most we can just replace admin_browser with newadmin_browser11:13
adiroibannewadmin_browser = rosettaexperts_browser11:14
adiroibanand when we are dealing with ubuntu or a distribution, use utc_browser11:14
adiroibanor dtc_browser (distributiontranslationscoordinators_browser)11:14
=== jelmer_ is now known as jelmer
danilosadiroiban, it's not that simple, I am afraid... some tests might be using admin_browser to change stuff that rosetta_browser can't (i.e. setting up a bzr branch for a productseries); I am just guessing, I don't know how many cases like these we have11:33
adiroibandanilos: I agree11:34
danilosadiroiban, anyway, stories are not meant to be comprehensive11:34
adiroibanthen where should we do those tests?11:34
danilosadiroiban, well, we should do basic tests for major user stories like you suggest11:35
danilosadiroiban, we should not comprehensively test all bits and pieces... i.e. if we test that UTCs have privileges, we should probably not test that rosetta experts have, and so forth... i.e. what you said yourself :)11:35
adiroibanadiroiban: ok. but can we have rosetta_browser and utc_browser created by default in pagetest, so that we don't need to create them in each test?11:37
adiroibanI can just start migrate the current test as I come across them11:39
adiroibanwith the latest change in permission system, most of them are no longer valid11:39
danilosadiroiban, yeah, we can11:44
danilosadiroiban, but, since those are based on sampledata, I'd rather just have a utility function which constructs them11:45
danilosadiroiban, i.e. sampledata that doesn't exist11:45
=== mrevell is now known as mrevell-lunch
=== vila is now known as vila-lunch
adiroibandanilos: True. But then we need to have something like this at the beginning of each test for distributions http://paste.ubuntu.com/343746/12:26
adiroibanshould we but it in factory.py ?12:27
danilosadiroiban, oh, I said a utility method so you should replace that code with utc_browser = setup_distribution_translation_admin_browser()12:29
danilosadiroiban, this should be a pagetest helper, not part of factory12:29
adiroibanyep.12:30
danilosadiroiban, it should be added to lib/canonical/launchpad/testing/pages.py and to the setUpGlobs so it's accessible widely12:31
adiroibanthanks!12:31
adiroibani was just searching for that :)12:31
danilosadiroiban, I just don't want utc_browser to be set-up for every pagetest, because it's complex to generate (and would slow everything down)12:32
danilosadiroiban, so, don't set it up like the other browsers are set up12:32
adiroibanagreed12:32
adiroibansomething like this:     test.globs['setup_utc_browser'] = setup_utc_browser12:36
adiroibanjust a reference to the function12:36
adiroiban?12:36
=== mrevell-lunch is now known as mrevell
=== vila-lunch is now known as vila
adiroibandanilos: regarding bug 359180, it's ok to go with yui event-key and have keybindings similar to poedit?13:51
mupBug #359180: Missing keyboard shortcut for navigation <trivial> <ui> <Launchpad Translations:In Progress by adiroiban> <https://launchpad.net/bugs/359180>13:51
intellectronicaandrea-bs: so you've already got the ui branch?14:13
andrea-bsintellectronica, I've just pushed it, but actually I haven't written code yet14:14
intellectronicaah ok :)14:15
intellectronicajust howl if you need any help14:15
intellectronicaoh and pqm is open. i'll send your model branch for test and landing14:15
danilosadiroiban, depends, do they conflict with any regular bindings?14:48
danilosadiroiban, i.e. what is Ctrl+C for?14:48
adiroiban:)14:48
adiroibanmy fault. it should have been Alt+C14:50
=== EdwinGrubbs_ is now known as EdwinGrubbs
danilosadiroiban, I've added a comment to the bug, fwiw :)14:54
danilosadiroiban, Alt + C might also interfere with what people might be doing in their browsers (depending on the translation of their menus)14:54
adiroibanbut  those shortcuts will only be available on +translate page14:56
adiroibanif we are going to make some complicate keybindings just to avoind any browser in any language, they will no longer be shortcuts14:57
adiroibandon't know what to say14:57
=== salgado is now known as salgado-lunch
BjornTdoes 'ec2 land' work for anyone? i get this errror when trying to use it: http://paste.ubuntu.com/343765/15:33
=== EdwinGrubbs is now known as Edwin-afk
=== salgado-lunch is now known as salgado
=== Edwin-afk is now known as EdwinGrubbs
Pilkybeuno: you around?17:43
beunoPilky, hey18:20
Pilkybeuno: hey, just wanted to discuss a crazy idea I had with you18:31
beunoPilky, I'm eating lunch, but, shoot18:34
beunoI'll read on and off18:34
Pilkyok, well I was thinking about launchpad UI again last night and the thought occurred to me that trying to use regular web design for it is doing it a great injustice, as it isn't a web site, but a web app on the more complex end of the scale18:36
Pilkyso I had the crazy idea of attempting to make a cappuccino UI for launchpad, using the API18:37
Pilkyand designing it as though it is an actual application rather than a powerful website18:37
beunoPilky, interesting18:37
Pilkythe benefit is, it would be able to be a completely separate thing, by going through the API the UI would be able to be a separate project18:37
beunowould that mean making all pages ajaxy?18:38
Pilkymeaning a smallish team could work on it and provide consistency18:38
Pilkywell not as such, have you heard about cappuccino?18:38
beunoI haven;t18:38
beunoI expect it's a framework?18:38
Pilkywell, basically it is the closets to a desktop calibre API for building high end web apps18:38
Pilkyyeah18:38
Pilkyit basically has two components: cappuccino the framework and Objective-J the language18:39
beunoPilky, it's an interesting idea, I'd pitch it to the -dev mailing list18:39
PilkyCappucino is to Cocoa as Objective-J is to Objective-C18:39
Pilkyand it allows for applications along these lines: http://280slides.com/18:41
beunoPilky, does it scale well?18:41
beunointo a gazillion requests per minute, etc?18:41
Pilkywell I'm not sure, I mean the application, once loaded, runs entirely in the browser as it is basically pure javascript, such things would have to be tested18:41
beunosplitting the UI that much is certainly an interesting idea to explore18:41
Pilkybut the benefit is, rather than replacing the current LP UI it can be an alternative18:41
Pilkybut it would make it feel much more like an application, which is what it really is18:41
Pilkythe benefit of cappuccino of course is that it is LGPL so stuff can be added if needed18:43
beunoyeah, would allow more experimentation18:43
Pilkyyeah, I've been looking for a project to allow me to really test out cappuccino and something like this would be ideal18:44
PilkyI'll post something to the -dev list and see if anyone else would be interested in helping out one something like this in the new year18:44
beunosure, I'd have to look into objecive-j as well  :)18:46
Pilkyheh, well the website for it is: http://cappuccino.org/18:46
Pilkyand the IDE they're making that is currently in beta is at: http://280atlas.com18:47
Pilkythe benefit to me is that Objective-J/Cappuccino basically are Obj-C/Cocoa for the web so my Mac/iPhone development knowledge is quite easily transferable18:47
beunoPilky, I will poke around, i always like learning new things19:03
Pilkycool19:04
Pilkybeuno: ok I've posted something to the list. I'm really piling up a large amount of open source projects on my plate at the moment :P19:29
Pilkythis will be the 4th one I'm working on, not including all the various bits of code I release19:30
=== salgado is now known as salgado-afk
=== mup_ is now known as mup

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