[Zope] Managing Zope with Lynx?

Ragnar Beer rbeer@uni-goettingen.de
Fri, 25 Jan 2002 12:59:48 +0100


>From: "Ragnar Beer" <rbeer@uni-goettingen.de>
>> Has anybody successfully used Lynx to work with Zope's management
>interface? It'd be very nice to be able to use it in some special cases
>(e.g. debugging on a no-X server where Zope is listening on the loopback
>interface only). But the submit buttons never worked when I tried.
>
>Actually I tried it yesterday. I navigated around a bit and updated a DTML
>Method. No problems at all.
>
>Lynx Version 2.8.2rel.1 (01 Jun 1999)
>Built on openbsd2.9 Apr 28 2001 04:09:38

Hmm, strange. I'm using 2.8.2rel1 as well (on OpenBSD 3.0 but had the same 
problem with 2.9). I used ethereal to capture the data going to Zope and back.
Here is what I captured after selecting "add folder" in manage_main and pressing
the "add" button in Lynx 2.8.2rel1 and Netscape 4.75:

----------------- Lynx 2.8.2rel1 ---------------------

GET /?%3Aaction=manage_workspace&submit=Add HTTP/1.0
Host: 127.0.0.1
Accept: text/html, text/plain, text/sgml, video/mpeg, image/jpeg, image/tiff,
image/x-rgb, image/png, image/x-xbitmap, image/x-xbm, image/gif,
application/postscript, */*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: en
User-Agent: Lynx/2.8.2rel.1 libwww-FM/2.14
Referer: http://127.0.0.1/manage_main
Authorization: Basic cmJlZXI6ZGltbG9w

HTTP/1.0 302 Moved Temporarily
Server: Zope/(Zope 2.4.3 (source release, python 2.1, linux2), python 2.1.1,
openbsd3) ZServer/1.1b1
Date: Fri, 25 Jan 2002 10:34:08 GMT
Bobo-Exception-File: /usr/local/zope/lib/python/App/Management.py
Bobo-Exception-Type: Redirect
Connection: close
Location: http://127.0.0.1/manage_main
Bobo-Exception-Value: http://127.0.0.1/manage_main
Content-Length: 0
Bobo-Exception-Line: 152

----------------- Netscape 4.75 ------------------

GET /?%3Aaction=manage_addProduct%2FOFSP%2FfolderAdd&submit=+Add+ HTTP/1.0
Referer: http://127.0.0.1/manage_main
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (X11; U; OpenBSD 3.0 i386; Nav)
Host: 127.0.0.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Authorization: Basic cmJlZXI6ZGltbG9w
Cookie: tree-s="eJyLjlZ3hANPW/XYWAAtiQTP"

HTTP/1.0 200 OK
Server: Zope/(Zope 2.4.3 (source release, python 2.1, linux2), python 2.1.1, openbsd3) ZServer/1.1b1
Date: Fri, 25 Jan 2002 11:50:40 GMT
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 5472

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<base href="http://127.0.0.1/manage_addProduct/OFSP/" />

<title>Zope</title>
<style type="text/css">
<!--

h1 {
  font-family: Verdana, Helvetica, sans-serif; 
    font-size: 24pt; 
      font-weight: bold; 
      }

<snip> 
-----------------------------------------------

Strange, isn't it? To really make shure that I really selected "add folder"
when using lynx I repeated the experiment a couple of times - always with the 
same results. Lynx sends the wrong action. I just wonder why.

Ragnar