[Zope3-Users] Zope 3.3.0 creating DTML page TypeError: readline()takes exactly 1 argument (2 given)

Mats Nordgren mats at ronin-group.org
Fri Mar 9 22:07:47 EST 2007


I think this has been fixed in 3.3.1.

It was a problem with python 2.4.4 and Zope versions earlier than 3.3.1.

See http://www.zope.org/Collectors/Zope3-dev/535

Easiest is just to update to latest release.



-----Original Message-----
From: zope3-users-bounces at zope.org [mailto:zope3-users-bounces at zope.org] On
Behalf Of David Christensen
Sent: Friday, March 09, 2007 6:07 PM
To: zope3-users at zope.org
Subject: [Zope3-Users] Zope 3.3.0 creating DTML page TypeError:
readline()takes exactly 1 argument (2 given)

zope3-users:

I am a newbie running Zope 3.3.0 on FreeBSD 6.2.  I'm trying to create a
"hello,
world!" home page.  When I browse to my Zope instance, log in using the
administrator account, drill down to [Top] -> ++etc++site -> default, choose
DTML
Page, enter the magic words in the text area, and click Add, my browser
indicates
error 500 and z3.log says:


    2007-03-09T17:55:06 ERROR SiteError http://p3800.holgerdanske.com:80
80
    Traceback (most recent call last):
      File "/usr/local/www/Zope3/lib/python/zope/publisher/publish.py", 
line 126, in publish
        request.processInputs()
      File "/usr/local/www/Zope3/lib/python/zope/publisher/browser.py", 
line 263, in processInputs
        fs = FieldStorage(fp=fp, environ=self._environ, keep_blank_value
s=1)
      File "/usr/local/lib/python2.4/cgi.py", line 530, in __init__
        self.read_multi(environ, keep_blank_values, strict_parsing)
      File "/usr/local/lib/python2.4/cgi.py", line 650, in read_multi
        environ, keep_blank_values, strict_parsing)
      File "/usr/local/lib/python2.4/cgi.py", line 532, in __init__
        self.read_single()
      File "/usr/local/lib/python2.4/cgi.py", line 665, in read_single
        self.read_lines()
      File "/usr/local/lib/python2.4/cgi.py", line 687, in read_lines
        self.read_lines_to_outerboundary()
      File "/usr/local/lib/python2.4/cgi.py", line 715, in read_lines_to
_outerboundary
        line = self.fp.readline(1<<16)
    TypeError: readline() takes exactly 1 argument (2 given)


I'm just fumbling around with Zope, and don't know if I'm using the software
wrong or if this is a bug in Zope (or elsewhere).


I guess the meta-question is: "what's the best way to learn Zope?".  STFW, I
can't seem to find any Zope 3 tutorials, and the most recent online edition
of
"The Zope Book" seems to cover version 2.6.  Should I attempt to read/follow
that
version of the book using Zope 3 and "discover" the differences, or would I
be
better off installing Zope 2.6?


TIA,

David

_______________________________________________
Zope3-users mailing list
Zope3-users at zope.org
http://mail.zope.org/mailman/listinfo/zope3-users



More information about the Zope3-users mailing list