Home > Articles

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Step 3: Registering the Package

The next step in installing a new Zope package is to register the package's new components with the Zope 3 framework. To do that, you have to place a file in the package-includes directory. In a repository hierarchy, this directory is found in Zope3. In the distribution installation, it is located in Zope3/etc. You should enter the package-includes directory now and add a file called zwiki-configure.zcml, which contains the following:

<include package="zwiki" />

The package-includes directory is special in that all files ending with -meta.zcml will be executed when all meta directives are initiated and all files ending with -configure.zcml are evaluated after all other configuration is complete. However, there is no magic involved in finding this directory because the behavior is explicitly defined in Zope3/etc/site.zcml.

When you save the file, Zope will be able to execute the Wiki package's configuration.

  • + Share This
  • 🔖 Save To Your Account