On Wed, Jun 23, 2010 at 01:32, Joseph Gentle <[email protected]> wrote:
> Lets say I have a document which just has a single annotation looking like
> this:
> <?a "key"="old" ?>hi<?a "key" ?>
> If I want to update the value in the annotation from "old" to "new", which
> of these operations is correct?
> a) annotation_boundary(key="key", old_value="old", new_value="new"),
> retain(2), annotation_boundary_change_ended("key")
> b) annotation_boundary(key="key", old_value=NULL, new_value="new"),
> retain(2), annotation_boundary_change_ended("key")
> ... Which is to say, when you use an annotation boundary, should the old
> value inherit from the left or the right? (Does it matter?)

It's a): "For update components, the old values in the annotations
update match the annotation values of each item in the input document
that the component processes."


> I've tried applying these ops to fedone, but fedone doesn't seem to check
> old_value in annotation boundaries at all. (Which worries me - does that
> make it possible to send ops which break playback?).

FedOne never did proper validation.  For historical reasons, it uses
the composer to apply operations rather than BootstrapDocument or
IndexedDocument.  This is easy to fix, patches welcome.

Cheers,
Christian.

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" 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/wave-protocol?hl=en.

Reply via email to