Source

nimrud / conex / src / conex / configure.zcml

Full commit
<configure xmlns="http://namespaces.zope.org/zope"
	   xmlns:types="http://namespaces.nimrud.org/types"
           i18n_domain="conex">

  <include package="zope.security" file="meta.zcml" />
  <include package="zope.app.zcmlfiles" file="meta.zcml" />

  <include package="zope.viewlet" file="meta.zcml" />
  <include package="z3c.form" file="meta.zcml" />
  <include package="z3c.macro" file="meta.zcml" />
  <include package="z3c.template" file="meta.zcml" />
  <include package="z3c.pagelet" file="meta.zcml" />

  <include package="zope.publisher" />
  <include package="zope.traversing" />
  <include package="zope.traversing.browser" />
  <include package="zope.app.zcmlfiles" />

  <!-- The following packages aren't needed from the beginning, but
       end up being used in most applications -->
  <include package="zope.i18n" file="meta.zcml" />
  <include package="zope.annotation" />
  <include package="zope.copypastemove" />
  <include package="zope.formlib" />
  <include package="zope.i18n.locales" />
  <include package="zope.app.authentication" />
  <include package="zope.app.session" />
  <include package="zope.app.intid" />
  <include package="zope.app.keyreference" />
  <include package="zope.app.catalog" />

  <!-- Add your own component registrations here -->
  <include package="zope.component" file="meta.zcml" />
  <include package="zope.app.component" file="meta.zcml" />
  <include package="plone.supermodel" />

  <include package="z3c.form" />
  <include package="z3c.formui" />
  <include package="z3c.pagelet" />
  <include package="zope.contentprovider" />
  <include package="conex.types.browser" />
  <!-- My additional configuration -->
  <include package="conex" file="skin.zcml" />
  <include package="conex.types" file="meta.zcml" />
  <!-- Actual components -->
  <utility
      factory=".types.factory.ConcaveTypesFactory"
      provides=".types.interfaces.IConcaveTypesFactory"
      name="conex.TypesFactory"
      permission="zope.Public"
      />

  <types:type
      schema="conex.tests.fixtures.ISampleXMLType"
      />
  <types:type
      schema="conex.tests.fixtures.sample_python_schema.ISamplePythonSchema"
      />

  <class class="conex.types.content.BaseContent">
    <require
	permission="zope.View"
	interface="conex.types.interfaces.IConcaveContent"
	/>
    <require
	permission="zope.ManageContent"
	set_schema="conex.types.interfaces.IConcaveContent"
	/>
  </class>

</configure>