|
Chapter 9:
Nine Core Concepts of Zope Programming
Now that we have learned how to set up and customize Plone, we are
nearly ready to start developing brand-new functionality. This often
means writing new content types, with custom views and forms to
manage them. Sometimes, we will also create forms and pages that are
not connected to any particular content type.
Before we continue with the Optilux Cinemas example, however, we
will take a look at the core principles that underpin Zope
programming. Writing software for Zope is a little different than
writing software for other web programming platforms such as PHP or
ASP.NET. Having a solid understanding of Zope's core concepts will
help you understand the examples that follow, and help you apply
what you learn to your own applications.
The examples in this chapter are intentionally frivolous, and
demonstrate concepts in isolation. They use Python doctest syntax,
and most can be found again in the optilux.codeexamples package that
accompanies this book. You can run these tests as shown in Chapter
5, using: $ ./bin/instance test -s optilux.codeexamples
If you are brand new to Zope and Plone programming, you may find
this chapter a little intense on first reading. If so, do not get
discouraged! It may be easier to skim this chapter first, and come
back to it as you encounter different concepts again in subsequent
chapters. Alternatively, you may want to explore and play with the
optilux.codeexamples package to gain some experience with the
various techniques demonstrated.
|
Chapter 9:
Nine Core Concepts of Zope Programming
- 1. Object Publishing and Traversal
- Containment
- Acquisition Chains
- Path Traversal
-
2. ZODB Persistence
- Transactions
- Object Persistence
- 3. Searching Objects Using the Catalog
-
4. Describing Functionality
with Interfaces
- Using Interfaces in Catalog Searches
- 5. Component Configuration with ZCML
-
6. Component Registries Using Utilities
- Global Utilities
- Named Utilities
- Local Utilities
- Tools
-
7. Aspect-oriented Programming with Adapters
- Multi-adapters
- Named Adapters
- Adapter Factories
-
8.
Views and Other Presentation Components
- Content Providers and Viewlets
-
9.
Synchronous Events
Summary
|
|
Paperback
420 pages
Released:
September 2007
ISBN 1847191983
ISBN 13:
978-1-847191-98-4 |
|
|
|
|