=== wedtm is now known as wedtm|away | ||
=== wedtm|away is now known as wedtm | ||
gkcn | hello | 06:45 |
---|---|---|
=== wedtm is now known as wedtm|away | ||
=== wedtm|away is now known as wedtm | ||
=== wedtm is now known as wedtm|away | ||
gkcn | I'm using launchpadlib to search for some bugs and getting their attachments but I have problems | 07:44 |
gkcn | I couldn't find how to get the filename of the bug_attachment instances | 07:45 |
gkcn | attachment.data.open() is ok for getting the content but, I can't get filename and mimetype | 07:46 |
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:02 |
gkcn | tsimpson, and handle.content_type is the mimetype | 11:03 |
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:05 |
gkcn | yes | 11:06 |
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:07 |
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 | 11:08 |
skulltip | hi, how do i give someone upload rights to a project | 12:24 |
skulltip | do i have to create a team first | 12:31 |
skulltip | i seem to be an owner, shouldn't i be an administrator? | 12:33 |
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:35 |
sagaci | skulltip: https://help.launchpad.net/Teams/CreatingAndRunning#What_team_membership_means | 12:37 |
skulltip | thanks | 12:38 |
skulltip | have to go to team membership to add? don't see any links on project page | 12:43 |
skulltip | except my account | 12:43 |
sagaci | around the middle of the screen there should be a green Add member link | 12:44 |
sagaci | on your team homepage | 12:44 |
skulltip | ok how do i associate my team with a project | 12:45 |
sagaci | go to your project page and set the maintainer as the team you just created | 12:46 |
skulltip | ty | 12: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!