ebook img

Zope Bible PDF

649 Pages·2002·4.398 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Zope Bible

4857-3 cover 2/20/02 12:48 PM Page 1 If Zope can do it, you can do it too . . . 100% 100% “The Zope Bible is an indispensable, hands-on guide to Zope product development.” Power, versatility, and broad community support have made Zope one of the fastest-growing Open Source — Paul Everitt, Co-founder and Vice President of Products, platforms around. This in-depth guide brings you up to speed fast on Zope’s innovative Web site and COMPREHENSIVE ONE HUNDRED PERCENT Zope Corporation application development model. Two veteran Zope developers cover all aspects of Zope in detail, from COMPREHENSIVE AUTHORITATIVE installation to advanced topics like debugging, persistence, and automatic indexing support. Whether you’re a WHAT YOU NEED Web developer, a Web architect, or a content manager, you’ll learn all you need to know to put Zope to work. ONE HUNDRED PERCENT Inside, you’ll find complete Unleash the power coverage of Zope of the leading Most of the • Set up and run Zope on Linux or Windows true work Open Source Web ZZ in Zope is • Learn Zope Product development using application server done via the Python Products and ZClasses management Master Zope’s interface. • Develop a complete multi-user application as oo innovative Web a Python Product object development • Master content management and version pp model control strategies Zope enables Build secure, you to give an • Manage databases using SQL and DTML tags ee entity a role on flexible, and a particular • Use Zope’s built-in security to safeguard Web powerful Web sites object. This is ™™ sites and applications called a Local role. and Web applications ooppee ZZ • Find out how to run Zope behind Apache using PCGI, FCGI, or Proxy Pass You can ™™ install the Zope Bonus CD-ROM Packages •Zope on Linux using •Adobe GoLive tryout version GnoRPM’s BERNSTEIN & point and click •Dreamweaver trial version from Macromedia interface. ROBERTSON •Plus sample applications and code from the book Bible w w w . h u n g r y m i n d s . c o m System Requirements: $49.99 USA Reader Level: Shelving Category: Pentium PC, 128 MB RAM. See the $74.99 Canada Beginning to Advanced Web Development About the CD Appendix for details £39.99 UK incl. VAT Zope and complete system requirements. and more onCD-ROM ISBN 0-7645-4857-3 BONUS *85555-AJEFBc ,!7IA7G4-feifhe!:p;o;t;T;T CD-ROM Zope plussample Michael R. Bernstein, Scott Robertson, code from the book and the Codeit Development Team a4857-3 FM.F 3/1/02 9:36 AM Page i Zope™ Bible a4857-3 FM.F 3/1/02 9:36 AM Page ii a4857-3 FM.F 3/1/02 9:36 AM Page iii Zope™ Bible Michael R. Bernstein, Scott Robertson, and the Codeit Development Team Best-Selling Books • Digital Downloads • e-Books • Answer Networks • e-Newsletters • Branded Web Sites • e-Learning New York, NY ✦Cleveland, OH ✦Indianapolis, IN a4857-3 FM.F 3/1/02 9:36 AM Page iv Zope™ Bible Published by Hungry Minds, Inc. 909 Third Avenue New York, NY 10022 www.hungryminds.com Copyright © 2002 Hungry Minds, Inc. All rights reserved. No part of this book, including interior design, cover design, and icons, may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording, or otherwise) without the prior written permission of the publisher. Library of Congress Control Number: 2001118285 ISBN: 0-7645-4857-3 Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/SQ/QT/QS/IN Distributed in the United States by Hungry Minds, Inc. Distributed by CDG Books Canada Inc. for Canada; by Transworld Publishers Limited in the United Kingdom; by IDG Norge Books for Norway; by IDG Sweden Books for Sweden; by IDG Books Australia Publishing Corporation Pty. Ltd. for Australia and New Zealand; by TransQuest Publishers Pte Ltd. for Singapore, Malaysia, Thailand, Indonesia, and Hong Kong; by Gotop Information Inc. for Taiwan; by ICG Muse, Inc. for Japan; by Intersoft for South Africa; by Eyrolles for France; by International Thomson Publishing for Germany, Austria, and Switzerland; by Distribuidora Cuspide for Argentina; by LR International for Brazil; by Galileo Libros for Chile; by Ediciones ZETA S.C.R. Ltda. for Peru; by WS Computer Publishing Corporation, Inc., for the Philippines; by Contemporanea de Ediciones for Venezuela; by Express Computer Distributors for the Caribbean and West Indies; by Micronesia Media Distributor, Inc. for Micronesia; by Chips Computadoras S.A. de C.V. for Mexico; by Editorial Norma de Panama S.A. for Panama; by American Bookshops for Finland. For general information on Hungry Minds’ products and services please contact our Customer Care department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993 or fax 317-572-4002. For sales inquiries and reseller information, including discounts, premium and bulk quantity sales, and foreign-language translations, please contact our Customer Care department at 800-434-3422, fax 317-572-4002 or write to Hungry Minds, Inc., Attn: Customer Care Department, 10475 Crosspoint Boulevard, Indianapolis, IN 46256. For information on licensing foreign or domestic rights, please contact our Sub-Rights Customer Care department at 212-884-5000. For information on using Hungry Minds’ products and services in the classroom or for ordering examination copies, please contact our Educational Sales department at 800-434-2086 or fax 317-572-4005. For press review copies, author interviews, or other publicity information, please contact our Public Relations department at 317-572-3168 or fax 317-572-4168. For authorization to photocopy items for corporate, personal, or educational use, please contact Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, or fax 978-750-4470. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK. THE PUBLISHER AND AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. THERE ARE NO WARRANTIES WHICH EXTEND BEYOND THE DESCRIPTIONS CONTAINED IN THIS PARAGRAPH. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ACCURACY AND COMPLETENESS OF THE INFORMATION PROVIDED HEREIN AND THE OPINIONS STATED HEREIN ARE NOT GUARANTEED OR WARRANTED TO PRODUCE ANY PARTICULAR RESULTS, AND THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY INDIVIDUAL. NEITHER THE PUBLISHER NOR AUTHOR SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES. FULFILLMENT OF EACH COUPON OFFER IS THE SOLE RESPONSIBILITY OF THE OFFEROR. Trademarks:Hungry Minds and the Hungry Minds logo are trademarks or registered trademarks of Hungry Minds, Inc. in the United States and other countries and may not be used without written permission. Macromedia and Dreamweaver are trademarks or registered trademarks of Macromedia, Inc. in the United States and/or other countries. Copyright © 1997–2000. Macromedia, Inc. 600 Townsend Street, San Francisco, CA 94103 USA. All Rights Reserved. Zope is a trademark or registered trademark of Zope Corporation. All other trademarks are the property of their respective owners. Hungry Minds, Inc., is not associated with any product or vendor mentioned in this book. is a trademark of Hungry Minds, Inc. a4857-3 FM.F 3/1/02 9:36 AM Page v About the Authors Michael Bernsteinis an information architect for Codeit. He has been a member of the Zope development community since it was released as Open Source in late 1998, and wrote the first community-contributed “How-To” for Zope in February of 1999. Michael was one of the technical reviewers for The Zope Bookpublished by New Riders in 2001, and created the Zope category in the Open Directory Project (dmoz.org). Currently residing in Las Vegas, he has worked for two start-ups before joining Codeit and has built and managed various Content Management Systems and intranets using Zope. His interests include Science Fiction Fandom, Open Source, and other self-organizing emergent phenomena. His personal Web site is at http://www.michaelbernstein.com. Scott Robertsonco-founded Codeit in 1997, a company dedicated to building cus- tom applications that help businesses increase productivity and lower expenses. In 1998, he discovered a technology named Bobo that was so compelling that he learned Python and swore off Perl forever. When Principia (an application built on Bobo) was renamed Zope and released as Open Source, he selected it as Codeit’s preferred Web platform. An ardent believer in Open Source, he has contributed sev- eral products to the community and encourages his employees to do the same. When he’s not working he can usually be found creating strategies for achieving world domination, or at the very least devising ones that will annoy his partners. The Codeit Development Teamhas over 15 years of combined Zope experience. Besides the primary authors, other Codeit developers and staff contributed mate- rial to this book, including Nick Garcia, Erik Burrows, Forest Zachman, Brent Rogan, and Sam Stimson. The entire Codeit team is dedicated to using Open Source technologies on behalf of our customers, so that at the conclusion of a project they have the skills, code, and documentation on how to change and scale each application we build, enabling them to be as self-reliant as they wish to be. Beyond development, Codeit also offers Zope hosting as one of its services. a4857-3 FM.F 3/1/02 9:36 AM Page vi Credits Acquisitions Editor Graphics and Production Specialists Terri Varveris Sean Decker Joyce Haughey Project Editor Gabriele McCann Barbra Guerra Heather Pope Betty Schulte Technical Editor Tom Deprez Quality Control Technicians Laura Albert Copy Editors John Greenough Katherine Dvorak Andy Hollandbeck Ryan Rader Carl Pierce Linda Quigley Permissions Editor Charles Spencer Carmen Krikorian Media Development Specialist Editorial Manager Travis Silvers Kyle Looper Proofreading and Indexing Project Coordinator TECHBOOKS Production Services Ryan Steffen Cover Illustration Kate Shaw a4857-3 FM.F 3/1/02 9:36 AM Page vii To Ruth, for doing such a good job raising me; to Roxanne, for making my life complete; and to Talia, for the future. —Michael To Kyle Reid, welcome to the party. Glad you could make it. —Scott a4857-3 FM.F 3/1/02 9:36 AM Page viii a4857-3 FM.F 3/1/02 9:36 AM Page ix Preface H i! You’re holding the Zope Bible,a book we suspect will change how you look at building Web sites and Web applications. If you’re like most Web develop- ers and designers, you’re probably always looking for ways to improve your pro- cess, both for building and for maintaining Web sites. Whether the sites you’re building are consumer-oriented Web applications, content-centric publishing sites, intranets, or even vanity sites, you want to build them faster, maintain them easier, and integrate other people into your workflow with a minimum of hassle and fuss. Zope is a tool that is hard to describe, as in many ways it’s in a category all its own. So, rather than describe what it is, it’s better to describe what Zope can dofor you: ✦Zope contains a templating language for creating dynamic pages, making it easier to create and maintain a common look and feel for your site. ✦Zope uses a powerful scripting language (Python) for creating business logic, making it easy to create powerful Web applications. ✦Zope has a built-in Web management interface so you can create and maintain entire sites with nothing more than a standard browser and an Internet connection. ✦Zope has a built-in object database, making it easy to store content, logic, and presentation in a single place. ✦Zope has a built-in security framework, making it easy and safe to delegate maintenance of sections or subsections of the site to other people. ✦Zope sites are also accessible via FTP and WebDAV, making it easier to lever- age the desktop site creation tools you already use. ✦Zope is written in Python, making it easy to extend and enhance with your own customizations. ✦Zope has built-in content management tools such as Version objects and Undo, which make it easier to safely modify and update a site while it’s “live.” In other words, if you build Web sites, Zope is the tool for you.

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.