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
Arrow up icon
GO TO TOP
Professional Plone 4 Development

You're reading from   Professional Plone 4 Development Build robust, content-centric web applications with Plone 4.

Arrow left icon
Product type Paperback
Published in Aug 2011
Publisher Packt
ISBN-13 9781849514422
Length 516 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

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...

You have been reading a chapter from
Professional Plone 4 Development
Published in: Aug 2011
Publisher: Packt
ISBN-13: 9781849514422
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image