Merge lp:~kfogel/launchpadlib/426323-apidoc-html-title-attrs into lp:launchpadlib
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~kfogel/launchpadlib/426323-apidoc-html-title-attrs | ||||
| Merge into: | lp:launchpadlib | ||||
| Diff against target: |
84 lines 1 file modified
src/launchpadlib/wadl-to-refhtml.xsl (+9/-9) |
||||
| To merge this branch: | bzr merge lp:~kfogel/launchpadlib/426323-apidoc-html-title-attrs | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Barry Warsaw | code | 2009-09-25 | Needs Fixing on 2009-09-25 |
|
Review via email:
|
|||
| Karl Fogel (kfogel) wrote : | # |
| Barry Warsaw (barry) wrote : | # |
This looks good as it is, but I wondered on irc whether it's possible to test this in the launchpadlib tree. Does launchpadlib already test its wadl? If so, then adding a test for this shouldn't be difficult. If it's not, then we won't worry about it for this branch.
Please try to find Leonard or Francis to find out.
| Leonard Richardson (leonardr) wrote : | # |
> This looks good as it is, but I wondered on irc whether it's possible to test
> this in the launchpadlib tree. Does launchpadlib already test its wadl? If
> so, then adding a test for this shouldn't be difficult. If it's not, then we
> won't worry about it for this branch.
There are no tests of the stylesheet in launchpadlib, or anywhere for that matter. I don't recommend making any changes in this branch.
You could write a test that runs the stylesheet on the example WADL in wadllib and then parses the result to prove various things about the translation. This could run within launchpadlib, which already depends on wadllib.
Or you could test the real generated HTML in Launchpad. We already test that the HTML is generated, but we don't look in the file.

This resolves bug #426323.
I tested it by using Markus Korn's script from http:// paste.ubuntu. com/267586/ (note that the last few lines of that paste are not the script, but rather instructions for using it). Basically, just do this:
0. cd 426323- apidoc- html-attrs ## Be at the top of the branch b/wadl- to-refhtml. xsl lpapi.wadl
1. ## Get the script, save it as get-wadl.py. ##
2. python get-wadl.py
3. Do the authn dance with Launchpad in your browser. Read-only access is all you need to grant the script.
4. xsltproc -o apidoc.html src/launchpadli
5. ## Point your browser at apidoc.html, hover over stuff to see the titletips appear. ##
That's it!
I also performed this optional step 6:
6. Hope for the recently-committed fix for https:/ /bugzilla. mozilla. org/show_ bug.cgi? id=395668 to appear in my browser soon, so titletips don't drop away after five seconds.