[06:45] <gkcn> hello
[07:44] <gkcn> I'm using launchpadlib to search for some bugs and getting their attachments but I have problems
[07:45] <gkcn> I couldn't find how to get the filename of the bug_attachment instances
[07:46] <gkcn> attachment.data.open() is ok for getting the content but, I can't get filename and mimetype
[11:02] <tsimpson> gkcn: 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] <tsimpson> it's up to you to decide what to do with it
[11:02] <gkcn> tsimpson, ok I found it handle = attachment.data.open() ; handle.filenam
[11:03] <gkcn> tsimpson, and handle.content_type is the mimetype
[11:05] <tsimpson> gkcn: sure, but you have to open the attachment to get that (it's pretty much what you get from the HTTP headers)
[11:06] <gkcn> yes
[11:07] <gkcn> tsimpson, now my problem is about searching. In bugzilla it's possible to search bugs having attachments with application/pdf mime
[11:07] <gkcn> tsimpson, but in launchpadlib I couldn't find a way of searching bugs having some specific type of mimetypes
[11:08] <tsimpson> well 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 interface
[11:08] <gkcn> hmmm
[12:24] <skulltip> hi, how do i give someone upload rights to a project
[12:31] <skulltip> do i have to create a team first
[12:33] <skulltip> i seem to be an owner, shouldn't i be an administrator?
[12:35] <sagaci> skulltip: 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 team
[12:37] <sagaci> skulltip: https://help.launchpad.net/Teams/CreatingAndRunning#What_team_membership_means
[12:38] <skulltip> thanks
[12:43] <skulltip> have to go to team membership to add? don't see any links on project page
[12:43] <skulltip> except my account
[12:44] <sagaci> around the middle of the screen there should be a green Add member link
[12:44] <sagaci> on your team homepage
[12:45] <skulltip> ok how do i associate my team with a project
[12:46] <sagaci> go to your project page and set the maintainer as the team you just created
[12:51] <skulltip> ty