-----Original Message----- From: Adrian Graham [mailto:aag@stanford.edu] Sent: Tuesday, June 29, 1999 10:31 PM To: zope-dev@zope.org Subject: [Zope-dev] Making objects publishable
I am in the process of trying to make a simple "Hello World" object publishable. Currently I am using the tutorial entitled "Approaching the Zope Product API." In one section of the tutorial it appears to give instructions regarding making an object publishable, and testing that object with the debugger. However, it remains unclear to me how I actually install this object in the Zope system, so that it is available on the Web. At this point I am not interested in making this object a Product, but rather just a published object. Any instructions regarding this would be greatly appreciated (or pointers to documentation, if there is something I've overlooked).
Publishing just a straight object on the web does not involve Zope, however, it does involve two things 1) a webserver, and 2) ZPublisher, which is the Object Request Broker for Zope. ZPublisher publishes modules over various network protocols. If you think about it, Zope is just one (really) big python module. To ZPublisher, there is no difference between your python module and Zope's. So, the quick and dirty way to publish your module would be with the quick and dirty webserver that comes with Zope, ZopeHTTPServer. The synopsis of the command to do this is: ZopeHTTPServer.py [-p <port>] [-t] [-h <host address>] <path to module> var=value,] <path to module> is the path to the module you want to publish. The URL then would be: http://machine:port/Module/Object -Michel
Adrian Graham
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://www.zope.org/mailman/listinfo/zope-dev
(For non-developer, user-level issues, use the companion list, zope@zope.org, http://www.zope.org/mailman/listinfo/zope )