O'Reilly logo

Professional Plone Development: Building robust, content-centric web applications with Plone 3, an open source Content Management System by Martin Aspeli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Views and Other Presentation Components

A Zope 3 view is simply a component that can be found during URL traversal, and that can (usually) render itself. When Zope traverses a URL such as http://myserver.com/guitars/@@list_guitars it will first find the guitars object, using the rules outlned in the description of object publishing at the beginning of this chapter, and then do something akin to:

view = getMultiAdapter((guitars, request), name="list_guitars")

That is, a view is simply a named multi-adapter of some context and the current request. The name is usually disambiguated from content objects and attributes by prefixing it with @@, although this is optional. To render the view object, Zope will call it. This normally results in a page ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required