[Catalog-sig] [ANN] Prototype catalog server available

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun, 25 Mar 2001 11:10:57 +0200


> I got inspired after looking at Sean's catalog server stuff, and have
> coded up a catalog server in Zope.
> 
>   http://63.230.174.230:8080/archive
> 
> You can upload source and binary packages and search and browse. The
> catalog expects PKG-INFO files in source distributions.

I'm getting the impression that this server does not conform to the
protocol proposed in PEP 243. I've tried uploading a file using

<html>
<body>
        <H1>Upload file</H1>
        <FORM NAME="fileupload" METHOD="POST" ACTION="http://63.230.174.230:8080/archive/addArchiveForm"
              ENCTYPE="multipart/form-data">
        <INPUT TYPE="file" NAME="distribution"><BR>
        <INPUT TYPE="text" NAME="distmd5sum"><BR>
        <INPUT TYPE="file" NAME="pkginfo"><BR>
        <INPUT TYPE="text" NAME="infomd5sum"><BR>
        <INPUT TYPE="text" NAME="platform"><BR>
        <INPUT TYPE="text" NAME="signature"><BR>
        <INPUT TYPE="hidden" NAME="protocol_version" VALUE="1"><BR>
        <INPUT TYPE="SUBMIT" VALUE="Upload">
        </FORM>
</body>
</html>

That is, I started Lynx, loaded this file, filled in the distribution
field, and initiated upload. In turn, I got a page with a 500 status
code, and the document

Zope Error
 
   Zope has encountered an error while publishing this resource.
 
   Error Type: AttributeError
   Error Value: absolute_url

Traceback (innermost last):
  File /home/amos/Trunk/lib/python/ZPublisher/Publish.py, line 223, in publish_
module
  File /home/amos/Trunk/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/amos/Trunk/lib/python/Zope/__init__.py, line 221, in zpublisher_ex
ception_hook
    (Object: RoleManager)
  File /home/amos/Trunk/lib/python/ZPublisher/Publish.py, line 162, in publish
  File /home/amos/Trunk/lib/python/ZPublisher/BaseRequest.py, line 462, in trav
erse
  File /home/amos/Trunk/lib/python/Products/CMFCore/CookieCrumbler.py, line 229    (Object: ElementWithAttributes)
  File /home/amos/Trunk/lib/python/Products/CMFCore/CookieCrumbler.py, line 260
, in getLoginURL
    (Object: ElementWithAttributes)
AttributeError: (see above)        

Of course, my Lynx client did *not* submit any kind of cookie; sending
a cookie is not mandated in PEP 243.

Regards,
Martin