Professional Plone Development:
Building robust, content-centric web applications with Plone 3, an open source Content Management System
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 9

Introduction
1: Plone in Context
2: The Case Study
3: The Development Environment
4: Customization Basics
5: Developing a Site Strategy
6: Security and Workflow
7: Using Add-on Products
8: Creating a Custom Theme
9: Nine Core Concepts of Zope Programming

10: Custom Content Types
11: Standalone Views and Forms
12: Relational Databases
13:
Users and Their Permissions

14: Rich User Interfaces with KSS
15: Next Steps
16: Server Management
17:
Setting Up a Production Server

18: Authenticating with LDAP
19: Looking to the Future
Index

Latest Updates

Free Chapter:

Chapter 2: The Case Study [946 kB PDF]

Code Download

Contact us

 

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
    • Object Events
  • Summary

 

   

 

Paperback 420 pages
Released: September 2007
ISBN 1847191983
ISBN 13: 978-1-847191-98-4

     

 




View the book details
on PacktPub.com

 


 

  This website is owned and maintained by Packt Publishing Ltd, 2007. All rights reserved. Terms and Conditions