[Webkit-unassigned] [Bug 27119] bugzilla-tool: Add create-bug command

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 10 23:45:04 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27119





--- Comment #14 from Eric Seidel <eric at webkit.org>  2009-07-10 23:45:03 PDT ---
(In reply to comment #13)
> (In reply to comment #11)

Thank you for the scoping help.

> One typically doesn't do type detection in Python.  What are we trying to do
> here?  Avoid callers needing to wrap a string up in a StringIO object before
> passing to a function that takes a file-like object?

Yes.  Mechanize (or really ClientForm) requires a "file like object" (one with
a .read()) be passed to to file upload controls.  We often end up with strings
and thus wrap them with StringIO.  When there was just one callsite where I had
to wrap first with StringIO it made sense to do it outside of the "post
attachment" function.  Now there are a bunch of callsites and it seems that the
Bugzilla class should handle either strings or file-like objects and be able to
convert strings using StringIO when necessary.  (ideally ClientForm would do
this for us, but alas it does not).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list