Hi there,
Since SetAnnotation takes 3 arguments, it's not very practical to take
them around or pass them to functions, so I've began to use the
Annotation class from document.py. However, this class doesn't have
any method to apply the annotation to a document, so I end up having
to call doc.SetAnnotation(annotation.range, annotation.name,
annotation.value) each time.
I find it might be very useful to add such a method:
class Annotation(object):
...blah...
def SetToDocument(self, doc):
"""Set the annotation to the document"""
doc.SetAnnotation(self.range, self.name, self.value)
in order to just call Annotation.SetToDocument(doc) when you want to apply it.
Just an idea :-)
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=.