Skip to content

Commit

Permalink
Simplify site.zcml a tiny bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Sep 8, 2016
1 parent 6d54e97 commit d13d464
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
12 changes: 10 additions & 2 deletions src/Zope2/App/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five">
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:meta="http://namespaces.zope.org/meta"
xmlns:five="http://namespaces.zope.org/five">

<include file="exclude.zcml" />
<include file="meta.zcml" />
Expand All @@ -10,4 +12,10 @@
<include package="ZPublisher" />
<include package="five.globalrequest"/>

<include package="Products.Five" />
<meta:redefinePermission from="zope2.Public" to="zope.Public" />

<securityPolicy
component="AccessControl.security.SecurityPolicy" />

</configure>
5 changes: 0 additions & 5 deletions src/Zope2/utilities/skel/etc/site.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
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" />
Expand All @@ -19,7 +17,4 @@
<includeOverrides files="package-includes/*-overrides.zcml" />
<five:loadProductsOverrides />

<securityPolicy
component="AccessControl.security.SecurityPolicy" />

</configure>

0 comments on commit d13d464

Please sign in to comment.