[Zope] Help! How do I make the JobBoard example work?

Justin Miller JMiller@zefer.com
Sun, 14 Mar 1999 23:01:30 -0500


Hi All,

As an exercise, I'm trying to get the JobBoard example code given in
http://www.zope.org/Documentation/Reference/ObjectPublishingIntro to work in
Zope (as opposed to Bobo/ZPublisher), and am having some difficulty.

Copying the PeeWee's playhouse example in
http://www.zope.org/Documentation/Reference/ExternalMethods, I placed all
the JobBoard files in zope/lib/python/shared/JobBoard, made an empty
__init__.py file, fixed up the dtml_loc variable, and put a
JobBoard_utils.py file into zope/extensions, which reads as follows:

  "utility to add JobBoard objects to folders"

  def addJobBoard(self,id):
      "Add a playhouse to the current folder"
      if not hasattr(self,id):
          setattr(self,id,JobBoard("Python Jobs"))
          return "JobBoard added with id %s" % id
      else:
          return "id %s already in use" % id

Using Zope's management GUI, I successfully added the addJobBoard function
as an external method, and have successfully called it to create a JobBoard
object called testJobBoard.

However, when I try to view the testJobBoard object, I get an error message
that reads "Sorry, the requested document does not exist."

The addJobBoard function was added as an external method to the root folder,
so my understanding is that the testJobBoard object should also be
accessible from within the root folder (that is that its URL is
"localhost:9673/testJobBoard").

What am I doing wrong here?

Also, what is the proper way to debug this sort of problem?  The output of
the zope process merely mentions a GET request for the given URL, and the
404 response code -- no further detail is given.

Thanks in advance for the help!

-Justin


http://www.zope.org/Documentation/Reference/ProductTutorial.tar.gz