[Zope3-dev] Make sure your zserver.zcml is up to date.

Steve Alexander steve@cat-box.net
Sun, 23 Mar 2003 17:31:55 +0200


If you're using Zope 3 from CVS, make sure that your zserver.zcml file 
contains a line like this:

      <startup:addServer type="HTTP" port="8080" verbose="true"/>

and not one like this:

      <startup:addServer type="Browser" port="8080" verbose="true"/>

If you have a line like the latter, which contains the 'type="Browser"' 
attribute, then you need to change 'Browser' to 'HTTP'.


Here's a longer explanation of why. You can skip this if like.

Zope 3 supports the PUT and DELETE methods of HTTP.

However, to get them working, you need to make sure you have the correct 
line in the Zope3/zserver.zcml file. Because the settings in this file 
are unique to your own Zope installation, this file is not updated when 
you cvs up.

Near the end of your zserver.zcml file, you should have the following line:

      <startup:addServer type="HTTP" port="8080" verbose="true"/>

The port will be different if you changed it from the default. This is 
telling Zope to use the 'HTTP' server on port 8080.


Zope will still work if you have this line instead, but you won't be 
able use PUT or DELETE.

      <startup:addServer type="Browser" port="8080" verbose="true"/>

This tells Zope to use the 'Browser' server on port 8080. This will 
still work for normal web requests. However, the HTTP server does 
everything that the Browser server does. The Browser server will 
probably be removed during the near future. So, it is a good idea to 
change your zserver.zcml file to use the HTTP server rather than the 
Browser server.


An aside: before Zope 3 has a beta release, and hopefully sooner, the 
zserver.zcml file will be replaced by the zconfig system that was 
recently checked into the Zope 2 cvs HEAD.

--
Steve Alexander