Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Professional Plone 4 Development
Professional Plone 4 Development

Professional Plone 4 Development: Build robust, content-centric web applications with Plone 4.

eBook
€8.99 €39.99
Paperback
€48.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Professional Plone 4 Development

Chapter 4. Basics of Customization

To a certain extent, all we ever do when we use Plone-the-platform is to customize Plone-the-product. Sometimes, that means building a system that barely resembles "out-of-the-box" Plone; other times, it simply means adding a few bells and removing a few unnecessary whistles.

In this chapter, we will cover the main types of customization that Plone supports, including:

  • Persistent settings in the ZODB
  • GenericSetup configuration
  • CMF Skin layers
  • The Zope Component Architecture

Starting with the next chapter, these techniques will be explained more fully and put into practice in the context of the Optilux Cinemas case study.

Persistent settings and the ZODB

The first type of customization most developers come across is in the form of settings exposed by various Zope Management Interface screens and Plone control panels. Sometimes, they may also build applications that depend on particular content items or site structure. In both cases, part of...

Chapter 5. Developing a Site Strategy

In the previous chapter, we learned about ways in which a developer can customize Plone changing the source code of Plone itself. We will now employ some of these techniques as we begin the process of turning an out of the box Plone installation into the site that will become the Optilux Cinemas website.

In this chapter, we will:

  • Create the initial version of a policy package that will help us customize Plone to meet the requirements from Chapter 2, Introduction to the Case Study
  • Add a GenericSetup extension profile to this package
  • Write our first tests to prove that our customizations are working as expected

Creating a policy package

Our policy package is just a package that can be installed as a Plone add-on. We will use a GenericSetup extension profile in this package to turn a standard Plone installation into one that is configured to our client's needs.

Note

We could have used a full-site GenericSetup base profile instead, but by using a...

Chapter 6. Security and Workflow

Security should never be an afterthought when building web applications. Zope and Plone provide a robust and flexible security model that lets us worry about our application logic instead of thinking too much about how to lock it down, so long as we understand a few basics.

In this chapter, we will:

  • Explain the building blocks of Zope security: users, roles, and permissions
  • Demonstrate the use of workflow, the primary mechanism for managing permissions in Plone
  • Build a custom workflow for the Optilux website and add it to the policy package we created in the previous chapter.
  • Discuss the differences between protected and trusted Python code in Zope

Security primitives

Zope's security is declarative: views, actions, and attributes on content objects are declared to be protected by permissions. Zope takes care of verifying that the current user has the appropriate access rights for a resource. If not, an AccessControl.Unauthorized exception will be...

Chapter 7. Using Add-ons

Throughout this book, we aim to develop reusable components. Of course, it is not very likely that someone else would want to reuse the Optilux site theme or policy, but developing for reusability encourages good practice. Besides, the client could come back next year wanting another site with the same basic look-and-feel.

Plone developers have created add-ons that do everything from making small improvements to core content types, to providing new functionality like forums, blogs, and database integration tools. Sometimes, developers will factor components built for customers into a reusable base package and another with customer-specific integration code. In the spirit of the Plone community, the vast majority of these packages are made available free under open source licenses.

In this chapter, we will:

  • Discuss how to find, evaluate, and test Plone add-ons
  • Demonstrate how to include PloneFormGen, a popular form building tool in the Optilux application
  • Issue...

Chapter 8. Creating a Custom Theme

Plone 4 ships with a default theme called Sunburst. This is designed to be clean, color neutral, and minimalist, and as such can be a good starting point for intranets and websites where branding is a secondary concern. Most projects, however, end up needing to customize the look and feel to meet organizational branding requirements.

In this chapter, we will demonstrate how to:

  • Create a custom theme using the Diazo theming engine and plone.app.theming
  • Customize templates and views
  • Override a few of Plone's layout policies and visual elements

Background

In Plone 3, theming a Plone site involved selectively overriding page templates and resources such as stylesheets and images to modify the markup, styles, and images making up Plone's public face. This approach to theming is still possible in Plone 4, but it suffers from a fundamental problem—the more complex Plone's internals become, the harder it is to find all the templates and...

Left arrow icon Right arrow icon

Key benefits

  • The very first book on the newly released Plone version 4.
  • Learn how - and when - the professionals use Plone
  • Master the latest Plone technologies
  • Put theory into practice with a realistic case study built from chapter to chapter.
  • Written by Martin Aspeli, one of the Plone project’s most prolific core developers and responsible for several R&D efforts relating to Plone 4.0; and with a Foreword by Eric Steele, the Plone Release Manager.

Description

A years of experience in Plone development and project management are combined with an approachable writing style to create an engaging and highly-informative guide to working with Plone. Professional Plone 4 Development stands as an excellent resource for developers of all levels. - Eric Steele, Plone Release Manager Plone is a web content management system that features among the top 2% of open source projects and is used by more than 300 solution providers in 57 countries. Its powerful workflow system, outstanding security track record, friendly user interface, elegant development model and vibrant community makes Plone a popular choice for building content-centric applications. By customising and extending the base platform, integrators can build unique solutions tailored to specific projects quickly and easily.If you want to create your own web applications and advanced websites using Plone 4, Professional Plone 4 Development is the book you need.The https://www.packtpub.com/Professional-Plone-web-applications-CMS/book first edition of this book remains one of the most widely read and recommended Plone books. This second edition is completely revised and up-to-date for Plone 4.1, covering new topics such as Dexterity, Diazo, jQuery and z3c.form, as well as improved ways of working with existing technologies such as Buildout, SQLAlchemy and the Pluggable Authentication Service. It retains the writing style and comprehensive approach that made the first edition so popular. Built around a realistic case study, Professional Plone 4 Development will take you from an understanding of Plone’s central concepts, through basic customization, theming, and custom development, to deployment and optimization. The book is divided into four sections: First, you will be introduced to Plone and the case study, and learn how to set up a development environment. The second section covers basic customization, including theming a Plone site using Diazo. The third section focuses on custom development – building new content types and user interfaces, customizing security and integrating with external databases. The final chapters cover deployment and performance optimization.

Who is this book for?

This book assumes that the reader is familiar with Plone from the point of view of an administrator or power user, has a basic understanding of web application development, and is comfortable with the Python programming language.

What you will learn

  • Setting up a productive development environment
  • Basics of Plone customisation and extension
  • Theming a Plone site using Diazo and plone.app.theming
  • Core concepts that underpin the workings of Zope and Plone
  • Creating custom content types using Dexterity
  • Building views and forms, including the use of z3c.form
  • Integrating with relational databases using SQLAlchemy
  • Customising the management of users and groups with PAS
  • Creating rich user interfaces with jQuery and jQuery Tools
  • Deploying and optimizing a production-ready Plone server
  • Integrating with LDAP and Active Directory

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 26, 2011
Length: 516 pages
Edition : 1st
Language : English
ISBN-13 : 9781849514439
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Aug 26, 2011
Length: 516 pages
Edition : 1st
Language : English
ISBN-13 : 9781849514439
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 130.97
Advanced Penetration Testing for Highly-Secured Environments: The Ultimate Security Guide
€48.99
Responsive Web Design with HTML5 and CSS3
€32.99
Professional Plone 4 Development
€48.99
Total 130.97 Stars icon
Banner background image

Table of Contents

5 Chapters
I. Getting Ready Chevron down icon Chevron up icon
II. Customizing Plone Chevron down icon Chevron up icon
III. Developing New Functionality Chevron down icon Chevron up icon
IV. Real-world Deployments Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1
(9 Ratings)
5 star 44.4%
4 star 44.4%
3 star 0%
2 star 0%
1 star 11.1%
Filter icon Filter
Top Reviews

Filter reviews by




Vincent Fretin Nov 20, 2011
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This second edition is up to date with the latest and best practices of Plone 4.1, as well as other technologies that will land in next Plone versions.For the readers of the first version of the book based on Plone 3, you will recognize the case study used throughout the book: the Optilux Cinema application.The technologies covered by new chapters are (not exhaustive list) :- Dexterity content types- theming with Diazo/plone.app.theming and viewlets templates overrides with plone.app.themingplugins (which uses z3c.jbot underneath)- an enquiry form with the z3c.form library,- relation database development with SQLAlchemy for the "reservations of ticket and reporting" use case.An advanced subject like how to log in with a Facebook account by writing a plugin for the Zope PAS (Pluggable Authentication Service) that uses OAuth API and Beaker with collective.beaker for caching is also covered.Of course, throughout the book, you will write tests with the new plone.app.testing library instead of the old Products.PloneTestCase.New tools are mentioned like mr.developer used to checkout packages, jarn.mkrelease to make the releases, z3c.checkversions to check for new package versions.In the chapter entitled "Nice Core Concepts of Zope Programming", Martin explains among other thing object traversal, all you have to know about acquisition (implicit, explicit, chains), catalog search and how to use catalog brains efficiently. This is a refreshing remainder, even for me.The concepts of the Zope Component Architecture are well explained with understandable examples.It is a must-have in your books collection. I'm sure, you will find this book useful. Always keep it near you, so you can quickly look for a given example when developing your own project.
Amazon Verified review Amazon
Nejc Zupan Dec 08, 2011
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Short summaryIf you are doing Plone 4 development, go buy this book. Now.Some backgroundI started working with Plone in 2006. Back then I was really just beggining with development in general and did not know how to do things properly. I only knew how to tweak some templates and to use ArchGenXML to generate some content types. No version control, no tests, no nothing.Then Professional Plone 3 Development came. "Wow, I'm doing things seriously wrong" was my first reaction. That booked steered me in the direction of using Subversion to control my source code, writing tests to prove my code doesn't break in various places, using pdb - the Python debugger, deploying Plone sites myself, etc.Plone 3 vs. Plone 4However, Plone 3 was complicated. There were all these new technologies and concepts that you now had to use. That's not bad in itself, but those technologies only delivered part of the story. You still had to use old ways to do certain tasks. Plone's learning wall was higher than ever.With Plone 4, these technologies are not new anymore. They are polished and widely used. You only need to learn one way to do something, not three. As a consequence of this, Plone is now easier to learn. Plone's development process is cleaner, more defined, with better tools. The new book from Martin is the same: less history overhead, more confidence in newer, better tools and concepts.PP4DHaving in mind how much Martin's previons book improved my development process I was so stoked when I heard him announcing that he started writing an updated version. After waiting for many months, it's finally out. Bigger, better, more up-to-date. Unlike how Plone 4 is leaner than Plone 3, the new book packs a hundred more pages of insights into efficient development and deployment process. It starts with introductory chapters where the author shows you how to prepare basic project specification. Then it goes over preparing your development environment for productive work. I cannot stress enough how important a well prepared environment is. Having tools pointed out in the book at your fingertips when things go wrong is just godsent. What follows is how to write actual code. Several chapters, full with examples of code that you can use in your own projects. I really like how all examples come with tests to really show developers that tests are an important part of your development process. Finally, there's deployment. These chapters show you how to properly deploy and maintain your Plone site and gives you pointers on how to scale your deployment when your projects starts getting more attention.The information Martin gives is in accordance with latest best practices developed in the Plone community. Even if you are a seasoned Plone developer I'm sure you will find at least a few useful tricks and tools that you don't yet use and will grow to love them as soon as you do. I know I did!
Amazon Verified review Amazon
Stephen McMahon Sep 11, 2011
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Martin Aspeli's Professional Plone 4 Development is the most-anticipated Plone book since Martin's earlier Professional Plone 3 Development. For Plone developers, it pretty much goes without saying that Martin is an outstanding technical writer, and that his documentation of Plone's development environment is definitive.What got my attention about PP4D was that the contrast between it and PP3D is very much like the contrast between Plone 4 and Plone 3.Plone 4 does more than Plone 3, and Martin's book is bigger and has new chapters and sections to cover the new features. But Plone 4 is also sleeker and faster than 3. Its parts fit together better, and it's more approachable to new users and integrators.Martin shows us that the same is true for Plone 4 development. Both the Plone 4 development environment and the PP4D book make more sense than their Plone 3 counterparts. The parts fit together better. Plone 3 development required that you know, and practice, both new (Zope 3 style) and old (Archetypes) development paradigms. You had to know how to use Python packages and Zope products, skins and browser views. And, I think the Plone development community (and Martin) were not really sure how these fit together and when it was best to use which.PP4D is much more confident. Dexterity (content-type development framework) and Diazo (theming system) are much better ways to develop, and Martin is able to explain them clearly without having to burden the reader with some many layers of history. PP4D, like its predecessor, is still a book for experienced, versatile programmers, but it doesn't need to make as many apologies to its audience.Professional Plone 4 Development is thus a better book than its predecessor in part because Plone 4.x is a better development platform. Martin's community leadership is -- of course -- a large part of the reason for this advance. But, the improvements are also due to the great work of the many folks on the core development and framework teams.So, Martin should take a big bow. But Hanno Schlichting, David Glick, Laurence Rowe, Eric Steele, Denys Mishunov, Rob Gietma, Alex Limi and many others should be proudly joining that curtain call. Bravo.
Amazon Verified review Amazon
adam Nov 21, 2011
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a the best book for Plone4 . I very love it. It give me huge help to develop web application using Plone. I many thank Maitin. (author of the book)
Amazon Verified review Amazon
W Boudville Sep 09, 2011
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Yesterday I reviewed a book on vtiger, vtiger CRM Beginner's Guide , which is a beginner's guide to installing and administering that package. The current book by Aspeli is a big contrast, and not because its topic is running a CMS. Aspeli writes for a developer or administrator already well versed in Plone. The text is not about using a nice easy GUI to do straightforward administration or customising tasks. Instead, it focuses on hard core programming issues. There are relatively few screen captures of a cute GUI, as an empirical indicator of this.Informally, the book is a sequel to Aspeli's text on Plone 3 - Professional Plone Development: Building robust, content-centric web applications with Plone 3, an open source Content Management System. , which came out in 2007. The 4 intervening years have meant that Plone 4 has significant enhancements over Plone 3, and if you are still using the latter, consider at least perusing this book to see how you might improve the customising of your website. Likewise, Aspeli co-authored a recent [2009] book on Plone 3, Practical Plone 3: A Beginner's Guide to Building Powerful Websites . If you founds its advice germane and useful, this could be another inducement to read about the latest Plone.The book has several parts, roughly in order of increasing difficulty. The simplest is part 1, the first 3 chapters, which is an overview and explains the installation steps. Let me just say candidly that if you can't get through this part, then barring an error in the downloaded code, you shouldn't be reading this book at all, because not only can't you get to the rest of the book, but even if you could, it will likely be over your head.Part 2, chapters 4 to 8, explains how to use themes in Plone. A lot of Plone administrators will only need this part. There are many ways to alter the look and feel of Plone and of many of its other runtime characteristics. Changing the skins is the quickest way to present a unique look to your website. Separate from user interface visuals, the other main idea in these chapters is understanding the different roles in Plone. Each role is a job, like member, manager and reviewer. The table on page 109 summarises these well. Plone's developers have tried to factor out as many parameters as possible, and have these alterable by you, often via a Plone-provided window for simplicity.Part 3, chapters 9 to 15, is much harder. This is where you go to code new functionality, that is outside the default scope of part 2. The current book might be seen as an extension of Zope, where the latter is a successful web application server that is also open source. There are many references to Zope features in the narrative and in the code snippets. Chapter 9 is devoted to the key concepts of Zope. As a practical matter, it would greatly aid you to be already facile in Zope, so that chapter 9 is merely review. And perhaps consider getting an accompanying text on Zope, like this one - Web Component Development with Zope 3 . It transpires that to write new code, you need to understand the enclosing framework of Zope, because you might [actually probably will] have to step outside the current Plone 4 environment, since that is what you may want to modify.Part 4, which is the rest of the book, chapters 16 to 18, is easier than part 3. Here you tackle server deployment issues. No actual programming is likely needed. This section is mostly for the Plone administrator or the system administrator of your computers and network.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.