Re: locatability of objects inside a list in bluebream

Michael Howitz <[email protected]>
Newsgroups gmane.comp.web.zope.bluebream,gmane.comp.web.zope.devel
Message-ID <[email protected]>
Am 25.08.2011 um 09:54 schrieb Joshua Immanuel:
[...]
> But I like to know, what is the preferred way of making objects inside
> the 'my_list' to be locatable. So that I can have an edit page or a
> display page for the 'IMyListObject' in that list.


The list and the objects inside the list both have to implement zope.location.interfaces.ILocation.
To traverse to the `my_list` object you might use the ++attribute++ traverser.
To traverse from the list to its content objects you might need your own traverser (not sure if it works out of the box).

Again an older German blog entry might help: http://blog.gocept.com/benutzung-des-attribute-namespaces-in-zope3


Yours sincerely,
-- 
Michael Howitz · [email protected] · software developer
gocept gmbh & co. kg · Forsterstraße 29 · 06112 Halle (Saale) · Germany
http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
Zope and Plone consulting and development
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.