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

David Christensen dpchrist at holgerdanske.com
Fri Mar 9 21:06:59 EST 2007


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



More information about the Zope3-users mailing list