Skip to content

Instantly share code, notes, and snippets.

@jaroel
Created April 4, 2016 20:21
Show Gist options
  • Save jaroel/69607863bbc9125df3aed0184c936ef2 to your computer and use it in GitHub Desktop.
Save jaroel/69607863bbc9125df3aed0184c936ef2 to your computer and use it in GitHub Desktop.
Minimal site.zcml to make my Plone 5 instance running without z3c.autoinclude.
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:meta="http://namespaces.zope.org/meta"
xmlns:five="http://namespaces.zope.org/five">
<include package="Zope2.App" />
<include package="Products.Five" />
<meta:redefinePermission from="zope2.Public" to="zope.Public" />
<!-- Load the meta -->
<include files="package-includes/*-meta.zcml" />
<five:loadProducts file="meta.zcml"/>
<!-- Load the configuration -->
<include files="package-includes/*-configure.zcml" />
<five:loadProducts />
<!-- Load the configuration overrides-->
<includeOverrides files="package-includes/*-overrides.zcml" />
<five:loadProductsOverrides />
<securityPolicy
component="AccessControl.security.SecurityPolicy" />
<include package="plone.app.intid" />
<include package="plone.app.relationfield" />
<include package="plone.app.dexterity" />
<include package="plone.app.event" />
<include package="plone.app.lockingbehavior" />
<include package="plone.app.versioningbehavior" />
<include package="plonetheme.barceloneta" />
</configure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment