Hi again,
I'm seeing a weird bug when shifting an Annotation range, with the
following code :
for annotation in replace.annotations:
annotation.range.start += len(votdLiner)
annotation.range.end += len(votdLiner)
For some kinds of annotations, the range actually gets shifted by
len(votdLiner) while for others, it gets shifted by 2*len(votdLiner).
It doesn't depend on the type of annotation, as I have several
annotations of the same type in this list, and they don't get shifted
the same way.
For now, I've fixed this bug in my code by rebuilding my whole array :
newAnnotations = []
for annotation in replace.annotations:
newAnnotationRange = Range(annotation.range.start+len(votdLiner),
annotation.range.end+len(votdLiner))
newAnnotations.append( Annotation(annotation.name,
annotation.value, newAnnotationRange) )
replace.annotations = newAnnotations
Anyone has seen such a behavior?
Raphaël
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=.