I don’t know why, but the Java API seems to destroy the Python API. I was making a robot and wanted a better formatted output(HTML markup) and found that the solution was .appendMarkup(). No problems. Except Python’s API doesn’t seem to have that. But I figured it out and thought I’d make a note of it here:
| ActionScript 3 | | copy code | | ? |
| 1 | blip = context.GetBlipById(properties['blipId']) |
| 2 | waveId = blip.GetWaveId() |
| 3 | waveletId = blip.GetWaveletId() |
| 4 | subBlip = blip.CreateChild() |
| 5 | subBlip.GetDocument().SetText("Unmarked text") |
| 6 | context.builder.DocumentAppendMarkup(waveId, waveletId, subBlip.GetId(), "<b>go</b> where the API isn't") |
Get it? To boldly go… fuck whatever.
Anyways, so I don’t really know what is happening there, but all the opsDocument methods setup a builder to send the Operation to the server. Python’s API doesn’t have an opsDocument AppendMarkup() method, but it DOES have the functionality. So I’m just going one level deeper and things seem to work.
Yes, you can do the bold thing with Annotations, but I’m importing HTML from another source and I get the DIV’s and SPAN’s, etc, and this works with them as well. You must have well formed HTML though!

Hello from Russia!
Can I quote a post “No teme” in your blog with the link to you?
Sure!