Zope and Plone Development

by Kevin — published Nov 16, 2026

In this controversial thought about both Zope and Plone development, I will discuss some of the reasons why you might not always need to write any code at the file system layer, and some reasons you might want to.

So far, this entire Plone website that you see here doesn't have any custom add-ons built.  The only Zope Product is one which isn't actually publicly accessible.  With those thoughts, in that I have been able to create custom content types using the Dexterity system, it made me begin to wonder, in which cases would I even need to create a full Plone add-on, or would a full add-on be a bit overboard.

Plone Add-on Advantages

First, I'll go through a few of the advantages of encapsulating your code into a Plone add-on.  For some Plone tasks, an add-on will be absolutely required.  If your goal is to just add a new content type with some custom fields to use and render, then developing a full-on might be a bit overboard, especially for a smaller self-hosted Plone project such as this.  Within an enterprise environment, you should always be using a Plone add-on, as it will ensure that all these custom content types are fully version controlled, and easily re-deployable.  This part could also be important for some small sites as well.  In a previous post I made mention of how to develop a custom content type for Plone entirely through the web with no add-on development skills needed.  In theory these content types can also be exported and saved for future use as well.

Advantages of Through-the-Web

This is where a few people in the Zope and Plone  community don't want many people to go, as they are enterprise developers mostly, and say that everything should be developed in the file system, and fully under version control.  Within an enterprise environment, this mentality makes complete sense.  However, there are some rather interesting advantages to the sort of web applications which can be developed using Zope's through the web technology.  The main advantage is that all the Python code is naturally restricted in what it can do.  This means that even if the developer of the through-the-web code has made a bug in their code, it can't effect the entire web application server.  This can be really good in a lot of cases, especially for developers who might just be learning about how Zope works for example.  These restrictions are also rather interesting for another purpose, in that the code which is run is entirely security enforced by Zope.  This means that if someone writes code through-the-web, and tries to do something which their specific user shouldn't be-able to do, then it won't be allowed.  Zope has some interesting security capabilities built into it, and with a lot of modern Zope Products and with Plone, these are all used for content types and components built from the file system.  With older Zope web applications which may have Python code right inside Zope itself, this Python code is easily and effortlessly restrict-able to very specific security contexts.

Another interesting note is that it is actually possible to mix both file system code with code through-the-web in interesting ways.  For example, if you'd like to have a certain action be controlled by the through-the-web security context, you can have your file system based code create a Zope object, and place the restricted and user-modifiable code into it.  This can allow for a more hybrid approach, while also allowing for potential customization outside of the file system.  Some Zope Products might generate Page Templates inside Zope, which are both restricted, and can also be modified if needed, without needing to fork or update the file system code.

Advantages of a Zope Product

While Plone add-ons are most of the focus these days, I wanted to briefly explain the moments when I do consider developing in the file system.  With a Plone add-on, it's easy to know when you need one, as what you can do with Plone only through the web is very limiting overall.  However, with what Zope Products can do, it is a bit different.  For the most part, anything you can do in a Zope Product, can also be replicated through-the-way, except some very specific things like fully custom Zope objects.  If you need to script a bunch of existing Zope objects, then through-the-web can work, however where a Zope Product is the most useful, is in the development of a custom reusable Zope object.  A lot of times when developing through the web, you will probably set a lot of custom properties on existing types like Page Templates or DTML Documents, which can allow your custom code to filter, or render those objects differently.  After awhile, staying consistent, especially if there isn't a script to auto-generate such objects, can become tedious.  This is where a Zope Product comes in handy, as you can create a custom Zope object which will have all these needed properties, and even some additional logic built right into it.

Conclusion

I like that Zope still provides this ability, and for a developer to choose for themselves how they want to write code for Zope.  While the industry has went towards version control everything sort of mentality.  For smaller, or personal websites, I don't really feel that this is needed as much.  How often do I ever go through my commit history to see what I did a month ago?  Probably never, for me, this is just a waste of my time, when in reality that is more important to me is having a quality back-up system in place where I can effortlessly restore my website.  My website is more than just the code behind it, it's about the content.  A version control system will only back-up my source code for my various content types, but not the content itself, which is much more important.

Backups with both Zope and Plone couldn't be easier, with several fun options to choose from:

  • Backup the rolling transaction enabled Data.fs, which contains everything.
    • This would also contain any through-the-web stuff done as well, such as Python scripts, not just content.
    • Restoring this file is just as simple as stopping Zope, replacing the Data.fs, and starting it, backup restored!
  • Use the Zope Import/Export buttons in the ZMI.
    • While not as efficient for Plone websites, it can effortlessly back-up a single Zope application to a single file.
    • This file can only be restored onto an instance running the same Python and Zope versions however.

This is why I'm not too concerned about writing code in the file system as much, and why for some projects, I am preferring to write them right in Zope itself, as it can be easily backed up and restored.  Oh, and Zope's ZODB also has a full versioning system built right into it as well.  So, many Page Template or Python Script, I can effortlessly see it's change history, when it was changed, and even revert back to a previous version of that Zope object.  If Zope already has these built into it, and when file system development isn't always needed for so many tasks, then for my personal website, I feel that what Zope currently offers is perfectly fine for my requirements.