On Wed, Mar 11, 2015 at 7:17 AM Brian Bouterse <bbouters@redhat.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm using the ExternalBugs support in python-bugzilla from checkout. I
can create and remove entries so that is good. Mainly I'm using the
limited support from [0] which is a great start, but I need to set
more of the attributes described here [1].

Specifically I want to do two things:

1) Adjust the signature of add_external_bug and remove_external_bug to
use keyword args to support all fields
 

2) Add a new update_external_bug method which accepts kwargs similar
to how add and remove do

I reckon both are good ideas - assuming you mean tacking on a **kwargs to the end of each methods; was a bit lazy with the initial implementation and only did what was then required. :) However, I do think it might be better to be explicit about the args. Just my 2c.
 

I think I see how to do it for my own purposes. My question is how
could I contribute a patch back to be included in future
python-bugzilla releases? I couldn't find any documented process, so
how do I contribute back?

I have submitted a patch [1] updating the HACKING text file to include this detail. The crux of it is - send it to the list using git-send-email :)

Hope that helps.

-arun

[1] https://lists.fedorahosted.org/pipermail/python-bugzilla/2015-March/000381.html
 

[0]:
https://git.fedorahosted.org/cgit/python-bugzilla.git/commit/?id=8edea7ec964924392fd889819af6cdd619809413
[1]:
https://bugzilla.redhat.com/docs/en/html/api/extensions/ExternalBugs/lib/WebService.html

- -Brian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJU/19MAAoJEK48cdELyEfyf2oH/RpvWhch+ISSmzzNRj2NGQM7
ce97AYl2mv3tI03fXGajdYNgg8SQjARlVLGcONL3TIljQyAIDb7qluSZkqn26wx/
85PH4VamugOmtFRi0u/DQK1IoG4Okud3+l+gDNpSZShyDmGMSp8/M6OGJ5kh/ToR
dyY3Tn9YXnk+mkZqpKp3/homSARSpHMdTdjC+rqhAULV8XzA49YyJhrj32cIeYcb
KpK4ugnjV2GBAtl1m5q5aX4l6fDQ+pqTP+wws1ZrYVje3/5b68fsQYrMhM6bQAY4
/p3QoM7DBWP8jJeQxhDxqsIYI7VGNo6/pd9JTy3WcxZg29liq9tkRbCYxOYHK28=
=Wrvf
-----END PGP SIGNATURE-----
_______________________________________________
python-bugzilla mailing list
python-bugzilla@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/python-bugzilla