[Zope] - RE: First install, First connect
Paul Everitt
Paul@digicool.com
Wed, 9 Dec 1998 07:29:13 -0500
Janko writes, concerning Dave's "Document Contains No Data" post:
> Uh, from someone with Zen-level 0.1. All the information your site
> wants to publish and a lot more are in exactly these data.* files,
> which are objectstores. Manage is not a html-form or page but
> a method
> of Zope which evaluates in the current context and gives you a
> managment screen for the parent object.
Point of clarification here. Many of the built-in things in Zope are
class methods. The templates for "manage" (the frameset), "manage_menu"
(the left hand navigator), and "manage_main" (the right-hand folder
contents) are all class methods.
Thus, they don't go into the object database until you edit them in a
folder. While it probably doesn't seem possible to create a new "main"
method for a folder, well, it is...but not yet documented. *One* of the
features of Zope classes is that they allow you to define your own
Documents as the management interface for instances of your class.
Thus, the "manage" document is actually manage.dtml which is bound as a
class method to the Zope folder class.
Of course, I haven't been allowed to write Python code in a year, so I
might be all wrong :^)
Here are two debugging steps that I suggest:
1) telnet to 80 and do "GET /index_html HTTP/1.0" then hit return twice.
Email the results to the list.
2) Harness the True Power (tm) of the now-barely-documented Zope
Debugger. When we get complete documentation this will be perfectly
clear. The Zope Debugger is basically the Python debugger (already
documented) with a number of conveniences for Zope built in.
After shutting down the server, with one command you could launch the
debugger with all the request information such as authentication and
step straight to the "manage" object.
--Paul