/srv/irclogs.ubuntu.com/2012/04/15/#launchpad.txt

=== wedtm is now known as wedtm|away
=== wedtm|away is now known as wedtm
gkcnhello06:45
=== wedtm is now known as wedtm|away
=== wedtm|away is now known as wedtm
=== wedtm is now known as wedtm|away
gkcnI'm using launchpadlib to search for some bugs and getting their attachments but I have problems07:44
gkcnI couldn't find how to get the filename of the bug_attachment instances07:45
gkcnattachment.data.open() is ok for getting the content but, I can't get filename and mimetype07:46
tsimpsongkcn: most of the time attachment.title will give you the name. as for the type, LP only detects patches and "anything that wasn't detected as a patch"11:02
tsimpsonit's up to you to decide what to do with it11:02
gkcntsimpson, ok I found it handle = attachment.data.open() ; handle.filenam11:02
gkcntsimpson, and handle.content_type is the mimetype11:03
tsimpsongkcn: sure, but you have to open the attachment to get that (it's pretty much what you get from the HTTP headers)11:05
gkcnyes11:06
gkcntsimpson, now my problem is about searching. In bugzilla it's possible to search bugs having attachments with application/pdf mime11:07
gkcntsimpson, but in launchpadlib I couldn't find a way of searching bugs having some specific type of mimetypes11:07
tsimpsonwell LP only actually tries to detect if the attachment is some kind of patch or not, so that information isn't available from the API interface11:08
gkcnhmmm11:08
skulltiphi, how do i give someone upload rights to a project12:24
skulltipdo i have to create a team first12:31
skulltipi seem to be an owner, shouldn't i be an administrator?12:33
sagaciskulltip: you could create a team and assign that as the maintainer of project, have moderated/restricted permissions on the project and then invite the uploaders to the parent team12:35
sagaciskulltip: https://help.launchpad.net/Teams/CreatingAndRunning#What_team_membership_means12:37
skulltipthanks12:38
skulltiphave to go to team membership to add? don't see any links on project page12:43
skulltipexcept my account12:43
sagaciaround the middle of the screen there should be a green Add member link12:44
sagacion your team homepage12:44
skulltipok how do i associate my team with a project12:45
sagacigo to your project page and set the maintainer as the team you just created12:46
skulltipty12:51
=== wedtm|away is now known as wedtm
=== wedtm is now known as wedtm|away
=== wedtm|away is now known as wedtm
=== wedtm is now known as wedtm|away
=== wedtm|away is now known as wedtm

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