Hi Cole,
Thanks for the hint.
Now I am on next stage. File has been uploaded successfully but it got corrupted.
I got this problem while uploading file by using attachfile function of python-bugzilla
(inside base.py).
I am using python-bugzilla-0.8.0.
Here is my code:
downloaded_file = "abc.zip" att_file_desc =
"Attached file description"
kwards = {
'contenttype':'application/octet-stream',
'filename': downloaded_file }
# attachfile method will return the id of attached file
bz.attachfile( bug_id, downloaded_file, att_file_desc, **kwards)
Could you please guide me where I am doing mistake ?
Thanks in advance,
//Mahboob
Date: Fri, 27 Sep 2013 11:05:11 -0400
From: crobinso(a)redhat.com
To: khokhar_cth(a)live.com
CC: python-bugzilla(a)lists.fedorahosted.org
Subject: Re: [python-bugzilla] How to attach file ?
On 09/27/2013 11:00 AM, Khokhar cth wrote:
> Hi Cole,
>
> Thanks for the efficient reply.
>
> By using "python-bugzilla", I am developing a web page to make changing
in
> bugzilla database. is it possible to utilize "command line tool" services
in a
> webpage ?
>
Maybe, but that wasn't my suggestion. I suggested to look at the command line
code tool for an example of how to upload/download attachments.
> How I can reach 'bugzilla' command line tool that python-bugzilla ships ?
is
> there any documentation for this tool ?
>
> Thanks in advance.
>
It's in the tarball under bin/bugzilla in pypi, not sure where it gets
installed though since I'm using distribution packages for python-bugzilla.
- Cole