[Zope] problem with ads.py

Amos Latteier amos@aracnet.com
Wed, 10 Feb 1999 11:57:04 -0800


At 02:32 PM 2/10/99 +0100, WWW Admin wrote:
>hi,
>
>i'm currently reading through the "A Technical Introduction to Object
>Publishing with Zope". included in this interesting read is an example
>ads.py. 
>
>when i execute ads.py via the shell i get no complaints however when 
>i try to add ads.py as an external method in zope with the following
>paramaters

The problem is that adds is not an external method. It is a module which
creates a publishable object. It was never meant to be used with the Zope
management framework.

External methods don't in general lend themselves to plugging publishable
objects into the Zope hierarchy.

To find out more read the External Method documentation:

http://www.zope.org/Documentation/Reference/ExternalMethods

You have a couple options. If you want to plug the ad generator into the
Zope object hierarchy, proceed along the lines of the 'PlayHouse' example
in the External Method documentation.

If you just want to publish the ad generator, use ZopeHTTPServer like so:

ZopeHTTPServer ads.py

Which will publish the ads.py module with ZPublisher.

Good luck.

-Amos