Trees | Indices | Help |
|
---|
|
Routines for submitting bugreport through www.diffpy.org.
Functions | |||
|
|||
|
Imports: HTMLParser, SrrIOError, SrrValueError, urlparse
Function Details |
Extract action attribute from the first form in HTML document. content -- HTML code index -- zero-based index of the form in the HTML document Return a tuple of (formattr, formdata) dictionaries, where formattr -- has all the attributes of the <form> element formdata -- has all the contain input field names and their values |
Fill in and submit bugreport form at FORM_URL. The post url is obtained by parsing the first HTML form. formfields -- dictionary containing the keys. When optional fields are not specified, use defaults as listed: "reporter" optional, ["anonymous"] "summary" required "description" required "component" optional, ["srrietveld"] "version" optional, [current version of SrRietveld] "traceback" optional, [""] All values get stripped from leading and trailing spaces. Any other keys in formfields are ignored. No return value. Raise KeyError when formfields does not have required keys. Raise IOError on failed posting. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Aug 28 23:35:57 2011 | http://epydoc.sourceforge.net |