Discussion:
[Zope3-Users] Accessing Annotations
Paul Wilson
2009-09-21 18:22:58 UTC
Permalink
Hi there,

I'm writing a web service that presents objects that additionally
contain metadata in the form of annotations. I want clients to be able
to manipulate (GET/PUT) this information without retrieving the whole
item.
I was wondering if Zope provides a method for traversing to the
annotations on such an object, or if I will be required to write a
custom traverser for my published objects that is aware of my
annotations, instead?

Thanks,
Paul
Thierry Florac
2009-09-22 06:59:00 UTC
Permalink
______________________________________________________________________
Le lundi 21 septembre,
Post by Paul Wilson
I'm writing a web service that presents objects that additionally
contain metadata in the form of annotations. I want clients to be able
to manipulate (GET/PUT) this information without retrieving the whole
item.
I was wondering if Zope provides a method for traversing to the
annotations on such an object, or if I will be required to write a
custom traverser for my published objects that is aware of my
annotations, instead?
______________________________________________________________________


I don't think that Zope3 provides such a traverser "out of the box".
But you can have a look at z3c.traverser package, which provides easy
ways to implement new traversing plugins.

Thierry
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Paul Wilson
2009-09-22 09:41:55 UTC
Permalink
Post by Thierry Florac
______________________________________________________________________
Le lundi 21 septembre,
Post by Paul Wilson
I'm writing a web service that presents objects that additionally
contain metadata in the form of annotations. I want clients to be able
to manipulate (GET/PUT) this information without retrieving the whole
item.
I was wondering if Zope provides a method for traversing to the
annotations on such an object, or if I will be required to write a
custom traverser for my published objects that is aware of my
annotations, instead?
______________________________________________________________________
I don't think that Zope3 provides such a traverser "out of the box".
But you can have a look at z3c.traverser package, which provides easy
ways to implement new traversing plugins.
I'm actually using grok, which has the grok.Traverser facility which I
think should do the trick.

Thanks!
Paul

Loading...