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

=== jelmer_ is now known as jelmer
wgrantec2 test didn't detach for me earlier. Is that known?08:52
jmlwgrant, it's not unknown09:07
jmlwgrant, but I don't think anyone knows the root cause09:07
jmlwgrant, or how to reproduce the problem.09:08
al-maisanquestion: does the the owner of an object has permission="launchpad.Edit" by default?09:55
wgrantNo.09:57
al-maisanwgrant: thanks !09:58
jtv1Oops while approving an MP :-(11:02
=== jtv1 is now known as jtv
jtvAny Code folks left?11:05
jtvabentley, are you here?11:05
jtvguess not... rockstar maybe?11:08
jtvSeems I can still review, but I need to claim the review first.  Otherwise, oops.11:11
jtvadiroiban: err... did you break rosetta-admin permissions?  :-)11:20
adiroibanjtv: hi. yep11:21
adiroibanjtv: can you please point me to the bug report you are concerned about?11:22
jtvadiroiban: we don't have one yet... just getting word from dpm that he can't do his work.  :-)11:22
adiroibanjtv: hm.. the about about lucid being closed?11:22
adiroibanor other problems?11:23
dpmadiroiban, jtv, that's not blocking my work, so don't worry11:23
jtvadiroiban: completely different... we suddenly can't change the translation settings for a project any more11:23
adiroibanjtv: also a direct access to the url is not working?11:25
jtvadiroiban: permission denied.11:26
dpmjtv, what's the usual URL to change the translation permission settings?11:27
adiroibanjtv: can you please fill a bug report and I will try to fix it.11:27
adiroibanbasicaly we just need to replace launchpad.Admin with launchpad.TranslationsAdmin11:28
jtvdpm: +changetranslators11:28
jtvadiroiban: that'd be great... but if you end up cleaning up a mess made by the rest of us, that'd be pretty embarrassing.  :-)11:29
* jtv files bug11:29
dpmjtv, thanks. And do you know where that URL normally is accessible through the UI? Is it at https://translations.launchpad.net/project, under the Permissions section? (I'm thinking in terms of updating the help page)11:31
jtvdpm: right under where it says "is translated with <Open> permissions" there should be a "Change permissions" link11:31
dpmjtv, thanks!11:31
jtvdpm: btw can we still edit this for Ubuntu?11:32
adiroibanjtv: I can do that as a project owner11:32
jtvWow...  there is a bug that *looks* like it's about this, but it's bug 12717111:33
mupBug #127171: Rosetta experts not allowed to "Change translators" <Launchpad Translations:Triaged> <https://launchpad.net/bugs/127171>11:33
jtvadiroiban: just trying to get an idea of the scope of the bug, but you bring up a good point: is rosetta-admins in utc?11:33
adiroibanjtv: nope11:33
adiroibanrosetta admin and distribution translations owners are two different groups11:34
adiroibanjtv: this looks like an old bug11:34
jtvindeed11:34
adiroibanmy permission changes landed only a few days ago11:34
dpmadiroiban, jtv, are you talking in terms of LP teams? Rosetta admins is part of https://launchpad.net/~ubuntu-translations-coordinators/+members#active11:35
jtvthat's what I meant... it means that we can't see in Ubuntu whether this affects distros as well11:36
jtvBut yes, this looks like an old problem.  adiroiban: see, almost got into that embarrassing situation there :-)11:36
jtvsorry for impugning you.11:37
adiroibanjtv: the distribution translation group owners needs some more permission. Ex there is bug 34714311:37
mupBug #347143: Distro translation group owners should be able to manage language packs <Launchpad Translations:Triaged by adiroiban> <https://launchpad.net/bugs/347143>11:37
adiroibanjtv: np. I have done some changes in the security.py and I should be able to fix those bugs11:38
adiroibanjtv: there is as a thread on launchpad-dev ML about the current mess from LP security system11:39
jtv"Where to put security-related code"?11:39
adiroibanyes11:40
adiroibanand the thread went beyond the subject with „how to write security classes”11:41
adiroibanand how we should handle security in LP cpde11:41
adiroibancode11:41
henningeadiroiban: the conclusion was *not* to use checkAuthenticated outside of security.py11:42
adiroibanhenninge: yep11:42
jtvmakes sense11:43
jtvalthough I'm not sure we can always avoid it... henning, didn't you work on one of those instances as part of the +translate rework?11:43
henningeadiroiban: I am about to land the branch that makes more use of permission_helpers.py. I will have to make another branch to remove it again. Just so you know.11:50
henningejtv: I don't remember anything like tha.11:50
henninget11:50
jtvhenninge: it's a pretty vague memory, so never mind...  There was some spot or other where things got complex enough (translation team membership etc.) that we had a customized check.11:51
henningejtv: customized checks are ok11:51
henningejtv: adi had suggested to import the checker classes from security.py and call checkAuthenticated in model code.11:52
henningeor was it view code? no, we have check_permission for that.11:53
jtvah I just had it the wrong way around... this is the kind of stuff I figure out when I need it, then forget again.  :)11:56
jtvanyway I'll read and archive that thread for next time.11:56
adiroibanhenninge: I will not touch the model security code until we have the security_helper fixed11:57
adiroibanhenninge: so I will wait for you changes11:57
adiroibanyour11:57
henningeadiroiban: permission_helper is still in there. There is nothing that needs to be "fixed" as it is just a collection of helper method which are optional.12:00
henningeadiroiban: I am not sure I will get around to removing it very soon.12:00
adiroibanhenninge: ah. my impression was that you were going to rename it to security_checker.py12:01
henningeadiroiban: no, that was just an idea.12:01
adiroibanand change isUser to canDoSomethibng12:01
adiroibanisRosettaAdmin to canAdministerRosetta12:01
adiroibanor something like that12:01
henningeadiroiban: no, what I am thinking of is an extension to Person objects so that they have attributes like "is_admin" for celebrity groups.12:02
henningeso, that would include is_rosetta_expert12:03
adiroibanhenninge: ok. I am still fuzzy with permission handling in LP. so don't worry about me12:03
henningeadiroiban: but "can*" methods are specific to model classes, so they should appear there.12:03
henningeadiroiban: that's the concept that you didn't like, remember?12:04
henninge;-)12:04
adiroibanyep12:05
adiroibanjtv, henninge: Right now launcpad.Edit is required for +changetranslators for IProduct and IProject. Adding rosetta admins to launchpad.Edit will also give other edit rigths (non related to translations). Should I use launchpad.TranslationsAdmin or just go with the current launchpad.Edit ?12:21
henningeadiroiban: I think lp.TranslationsAdmin is better.12:22
jtvadiroiban: this should definitely be limited to Translations settings12:22
jtvso what henning said.  :)12:22
henningeadiroiban, jtv, dpm, everybody else: Happy Holidays, enjoy any of them you might have, see you next year! :-)12:23
adiroibanjtv, henninge: OK.12:23
jtvhenninge: happy holidays!12:23
jtvit was a pleasure working with you in 2009; see you in 201012:23
dpmhenninge, happy holidays to you as well!12:23
adiroibanhenninge: ohohooo Happy holidays!12:24
jtv(or 2552 and 2553 respectively, here)12:24
adiroiban:)12:24
henningejtv: same here12:24
henninge;)12:24
adiroibanhow can I create a project-group like https://edge.launchpad.net/unr12:45
adiroiban?12:45
adiroibanah... using partof12:46
wgrantOnly admins can create them.12:48
adiroibanwgrant: thanks. I was a bit confused by IProduct and IProject12:49
wgrantproduct in the code == project in the UI. project in the code == project group in the UI.12:51
wgrantYay for renaming things in the UI years ago, but not in the code.12:51
adiroibanyep12:51
adiroibanbut still, a project is also somehow a product12:52
wgrantIt's not.12:53
wgrantWhat gives you that idea?12:53
adiroibanwell, I'm looking at registry/configure.zcml12:53
adiroibanfor IProduct and IProject „translationpermission” attribute12:53
adiroibanI set the translationpermission attribut as requiring launchpad.TranslationsAdmin (RosettaAdmin)12:54
wgrantI don't see that for IProject.12:54
adiroibanand it's working for a project12:55
adiroibanbut not for a project group12:55
adiroibanwgrant: right. me neither12:55
wgrantThere's no TranslationsAdmin permission for IProject.12:55
adiroibanwgrant: True. That is the bug I am working on right now. bug 12717112:57
mupBug #127171: Rosetta experts not allowed to "Change translators" <Launchpad Translations:In Progress by adiroiban> <https://launchpad.net/bugs/127171>12:57
adiroibanwgrant: Don't worry. I'll try to figure out what is wrong12:58
wgrantadiroiban: What do you see is wrong?12:59
adiroibanwgrant: I got this error: Unauthorized: (<Project at 0xd83934c>, 'translationpermission', 'launchpad.Edit')12:59
wgrantIProject.translationpermission comes from IHasTranslationGroup.12:59
adiroibanbut in configure.zcml I have http://paste.ubuntu.com/345899/13:00
wgrantIProjectPublic inherits from IHasTranslationGroup13:00
wgrantAnd registry/configure.zcml requires launchpad.Edit to set IProjectPublic.13:00
adiroibanwgrant: thanks!13:00
adiroibanwgrant: and in this case how can I move translationpermission for Project from launchpad.Edit to launchpad.TranslationsAdmin ?13:16
adiroibanchange IProjectPublic not to inherit from IHasTranslationGroup ?13:16
wgrantadiroiban: I think that might be best.13:17
wgrantadiroiban: Alter IProject to inherit directly from it.13:17
adiroibanwgrant: I am worried about the side effects13:17
wgrantadiroiban: Then make IHasTranslationGroup readable using launchpad.View, and writable with launchpad.TranslationsAdmin. You can probably then remove the explicit declarations about IProduct.13:17
adiroibanI see13:17
wgrantadiroiban: That's why we have a test suite.13:17
wgrantI don't think there should be a problem; those subclasses are meant to just be used for permissions.13:18
adiroibanah. ok13:18
adiroibanwgrant: schema is for reading and set_schema for writing?13:26
wgrantadiroiban: interface for reading.13:26
adiroibanwgrant: thanks!13:28
adiroibanwgrant: instead of <require permission="launchpad.View" interface="x" />, can I just use <allow interface="X"/> ?13:31
adiroibanthis is the current configuration for IProjectPublic13:31
wgrantadiroiban: Ah, yes, that makes sense for objects that don't have launchpad.View (because they're public)13:31
wgrantSo, yes, <allow> is the right thing to use here.13:32
adiroibanwhat is the purpose/usage of launchpad.View or how it is different from zope.Public?13:33
wgrantIt's used mostly for objects that can be private.13:35
wgrantzope.Public is always held.13:35
adiroibanThanks!13:36
adiroibanthe bug should be now fixed... will see what tests have to say13:37
=== jelmer_ is now known as jelmer
adiroibanjtv: for distributions, +changetranslators is +settings ? I was thinking to have a single name for that view14:44
jtvadiroiban: makes sense... it's the same form, right?14:44
adiroibanyes14:44
adiroibansame attributes can be changed14:44
adiroibantranslationgroup translationpermission14:44
adiroibanshould I go with +settings ?14:45
adiroibanbeside translators, translations policy is also set from this view14:45
adiroibanjtv: well... they have the same fields... but are different views14:53
adiroibansame template14:53
adiroibanProjectChangeTranslatorsView , ProductChangeTranslatorsView and DistributionChangeTranslatorsView14:54
adiroibanmaybe we can put them on the same IHasTranslationsGroupView14:55
jtvadiroiban: don't we already have a +settings for projects?14:55
jtvah, that's for productseries14:55
adiroibanjtv: there is +translations-settings14:56
adiroibanhm...14:56
jtvbut it's still for the series, not the project14:56
adiroibannope... +translations-settins is for IProduct14:56
adiroibansorry IProductSeries14:57
jtvthat gives me a 404 though14:57
jtvright14:57
jtvSo +settings makes sense to me... I'm just not sure why +translations-settings isn't called +settings as well14:57
adiroibanjtv: maybe , the one implementing it was worried not to owerwrite a general +settings page for „main”14:58
adiroibanjtv: but I could not find any other +settings page14:59
jtvadiroiban: that made sense a long time ago, before we had separate namespaces for our different hostnames...  but I don't see anything in there that's that old14:59
adiroibanother than in translations14:59
adiroibanjtv: then maybe I can also rename +translations-settings to +settings15:00
jtv(The stuff that's on +tranlsations-settings barely predates the source tree split)15:00
jtvadiroiban: bear in mind that it may involve updating the help site as well...15:00
adiroibanit is strage there are no other +settings view in the other lp components15:00
adiroibanjtv: those lines were last touched by Danilo, so maybe he can give us some hints15:05
jtvadiroiban: that may have been from the codebase split though15:05
jtvwhen we broke the source tree down by app (code, translations, bugs, etc)15:05
=== salgado is now known as salgado-lunch
=== salgado-lunch is now known as salgado
_Groo_hi/2 all23:56

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