[Zope] publishing question

Michel Pelletier michel@digicool.com
Thu, 22 Apr 1999 10:51:34 -0400


> -----Original Message-----
> From: Alex Rice [mailto:alrice@swcp.com]
> Sent: Thursday, April 22, 1999 1:34 AM
> To: zope@zope.org
> Subject: [Zope] publishing question
> 
> 
> Zope is Dope. It's like a breath of fresh air. Just thought I would
> throw that out there...
> 
> I'm reading in the Zope Manager's Guide about Netscape publishing. I
> have found that I can publish a document once with Netscape Composer,
> but once it already exists on Zope, I get an error when I publish it
> again:
> 
> Error uploading files
> The server responded:
> Sorry, an internal error occurred in this resource. 
> 
> Traceback (innermost last):
>   File 
> /usr/share/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
> 877, in publish_module
>   File 
> /usr/share/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
> 584, in publish
>     (Info: /alex/foo.html)
>   File 
> /usr/share/Zope-1.10.2-src/lib/python/ZPublisher/Publish.py, line
> 277, in badRequestError
> InternalError: (see above)
> 
> Am I doing something wrong? Using pgci Zope 1.10.2, Python 1.5.2 and
> Netscape 4.5
> 

This probably has nothing to do with your problem, but 1.10.2 is only
tested with Python 1.5.1.  Otherwise, I don't have much experience with
using the publishing features of Netscape.

> Also, am I correct that the following are the only possible 
> methods for
> manually publishing zope content (as opposed to being generated by a
> query or method)?
> 
> 1) editing in-browser text areas
> 2) Netscape publishing
> 3) WebDAV (upcoming in Zope 1.12 and beyond)
> 4) FTP*

Yes, #2 should really be 'HTTP PUT' which is what that mechanism is
based on, and #3 will be available in the next release, 1.11.

> 
> *is FTP available in pcgi zope? I see it's in the Permissions 
> page, but
> don't know how to use it. Any pointers to how FTP integrates with Zope
> objects?

You must use ZServer to get the FTP ability.  This is because, of
course, Apache and other web servers aren't FTP servers, so there is no
way for Zope to interact with them.  ZServer is a general purpose tcp/ip
server (the full blown system it's based on is called Medusa) which we
have written HTTP and FTP extensions for (based on the stock Medusa
protocol handlers).

<opinion>
ZServer and Emacs is the hands down best way to 'manually' edit things
in Zope.  The idea of 'WYSIWYG' editors is a good one, but as has been
pointed out, often they make lots of assumptions about the filenames,
they're picky and flakey about acutally publishing, and they just want
to do things their way.  This often results in 'WYSINNWYAWAYCFI'  (What
you see is nowhere near what you actually wanted and you can't fix it).
Emacs supports the concept of 'WYSIWYM', What you see is what you *mean*
(A powerful concept brought to us by the TeX people).  You can allways
use your favorite WYSIWYG tool to generate the HTML, and then cut and
paste it into a really killer tool like Emacs.
</opinion>

-Michel

> 
> TIA
> 
> Alex Rice    |    alrice@swcp.com    |    http://www.swcp.com/~alrice
>     Current Location: N. Rio Grande Bioregion, Southwestern USA
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>