RE: [Zope] publishing question
-----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 )
On Thu, 22 Apr 1999 10:51:34 -0400, Michel Pelletier <michel@digicool.com> said: Michel> This probably has nothing to do with your problem, but 1.10.2 is Michel> only tested with Python 1.5.1. Otherwise, I don't have much Michel> experience with using the publishing features of Netscape. Do you think I should back off to Python 1.5.1? Michel> You must use ZServer to get the FTP ability. This is because, Michel> of course, Apache and other web servers aren't FTP servers, so Michel> there is no way for Zope to interact with them. ZServer is a Michel> general purpose tcp/ip server (the full blown system it's based Michel> on is called Medusa) which we have written HTTP and FTP Michel> extensions for (based on the stock Medusa protocol handlers). OK I see. How does ZServer performance compare with Apache pcgi Zope? Medus sounds like it's pretty high performance. Michel> <opinion> ZServer and Emacs is the hands down best way to Michel> 'manually' edit things in Zope. The idea of 'WYSIWYG' editors Michel> is a good one, but as has been pointed out, often they make lots Michel> of assumptions about the filenames, they're picky and flakey Michel> about acutally publishing, and they just want to do things their Michel> way. This often results in 'WYSINNWYAWAYCFI' (What you see is Michel> nowhere near what you actually wanted and you can't fix it). Michel> Emacs supports the concept of 'WYSIWYM', What you see is what Michel> you *mean* (A powerful concept brought to us by the TeX people). Michel> You can allways use your favorite WYSIWYG tool to generate the Michel> HTML, and then cut and paste it into a really killer tool like Michel> Emacs. </opinion> I'm 100% with you there. I particularly like the python-mode.el for Emacs. But using one's favorite editor implies either uploading with FTP or with HTTP-put, correct? Just making sure I understand all the options :-) Thanks, Alex Rice | alrice@swcp.com | http://www.swcp.com/~alrice Current Location: N. Rio Grande Bioregion, Southwestern USA
On Thu, 22 Apr 1999, Michel Pelletier wrote:
<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>
Do ZServer and Emacs play nicely together, nowadays? I remember reading something on the list a while back regarding some problems with this setup. Also, does Emacs' HTML mode handle DTML well? Any tips on how to get Emacs and ZServer working well together? Which modes to use, anything special to put in .emacs, etc? I would be thrilled to get this working. :) jkh
On Thu, 22 Apr 1999, Jeff K. Hoffman wrote:
Do ZServer and Emacs play nicely together, nowadays? I remember reading something on the list a while back regarding some problems with this setup. Also, does Emacs' HTML mode handle DTML well?
I admit that I am slowly hacking away at a DTML mode. Its at a very early stage (I have some basic highlighting working :)) but I soon hope to have some basic indentation and some shortcut keys for common DTML tags. A style question: For myself I like to indent DTML only according to DTML tags, ie. I don't like to have the HTML to cause indent. This helps me to produce clean HTML code since its indentation level displays clearly the logic of the code. i.e.: <!--#if foo--> <!--#in--> <!--#if sequence-start--> <TABLE etc> <!--#/if--> <TR> <!--#/in--> <!--#/if--> What I want to do is provide a quick way to switch to HTML mode from the DTML mode so that you can switch from highlighting the logic and dynamic portions to the static. As I said before, its at an early stage, but if you want to help, either by providing some feedback or contributing code, send me a note and I will send it to you. ------- Jordan B. Baker -- jbb@spyderlab.com weaving the web @ http://www.spyderlab.com
participants (4)
-
Alex Rice -
Jeff K. Hoffman -
Jordan B. Baker -
Michel Pelletier