I've been working on my first robot for google wave recently, a vital part of what it does is to insert inline replies into a blip. I can't for the life of me figure out how to do this!
The API docs have a function InsertInlineBlip which sounded promising, however calling that doesn't appear to do anything!
EDIT:: It seems that this is a known bug. However, the question still stands what is the correct way to insert an inline blip? I'm assuming something like this:
inline = blip.GetDocument().InsertInlineBlip(positionInText)
inline.GetDocument().SetText("some text")
If you look at the sourcecode for
OpBasedDocument.InsertInlineBlip()
you will see the following:I think the TODO comment suggests this feature is not yet active. The method should be callable and return correctly, however I suspect that the document operation is not applied to the global document.
The syntax you included in your post looks correct. As you can see above,
InsertInlineBlip()
returns the value ofAddBlip()
, which is ...dun, dun, dun... a blip.EDIT: It is interesting to note that the method signature of the Insert method
InsertInlineBlip(self, position)
is significantly different from the Insert methodInsertElement(self, position, element)
.InsertInlineBlip()
doesn't take an element parameter to insert. It seems the current logic forInsertInlineBlip()
is more likeBlip.CreateChild()
, which returns a new child blip with which to work. From this we can suspect that this API will change as the functionality is added.