[Zope-dev] Newbie questions

Michel Pelletier michel@digicool.com
Thu, 17 Jun 1999 12:22:07 -0400


> -----Original Message-----
> From: Jon Ide [mailto:JIde@etcconnect.com]
> Sent: Thursday, June 17, 1999 12:04 PM
> To: 'zope-dev@zope.org'
> Subject: [Zope-dev] Newbie questions
> 
> 
> Questions from an utter newbie:
> 
> I'm trying to work thru "A Technical Introduction to Object 
> Publishing with
> Zope", specifically the Job Board example. I've created the 
> .dtml and .py
> files, but don't know what to do with them, and this isn't 
> explained in the
> doc.
> 

The document in question predates Zope.  It was written to help people
understand the inner Zen of Bobo, the predecesor to ZPublisher (which is
the Object Request Broker inside of Zope).

If your using PCGI, you can edit your PCGI resource file to point to the
module youwant to publish with the PCGI_MODULE_PATH variable.  If your
using ZServer, check out z2.py around line 335 to see how ZServer
publishes Zope.

Remember, Zope is just a Python module like the one you want to publish,
it's just very large.  To ZPublisher, there is no difference between
your Module and the Zope Module, the highly componentized nature of Zope
(and python in general) is one of it's more powerful features.

> What do I have to do to publish them? Where do the files need 
> to go? Are
> there actions I must take in the Zope Web interface? I'm 
> running the Zope
> web server locally on my Win95 machine.

In the case of ZopeHTTPServer you can say:

python ZopeHTTPServer.py MyModule.py

and your module will get pubished on port 9673.  See ZopeHTTPServer.py
line 493.

-Michel

> 
> TIA, and apologies for being so clueless.
> 
> Jon Ide
> ETC
> jide@etcconnect.com
> 
> _______________________________________________
> 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 )
>