[Zope] Bizarre error with standard_html_header

Curtis Maloney curtis@umd.com.au
Wed, 12 Jul 2000 14:56:05 +1000


Ok... this one has me flummoxed.

I just can't make ANY sense of it.

I am taking advantage of Acquisition to save me from having to have two 
copies of a page... fine.. common... well understood, etc.

Problem is, when i go to the page from the lower directory, it throws some 
bizarre Type error, complaining about too many parameters to 
standard_html_header.

I dug about, i insterted a redirect to try to find WHEN it was hitting.

What got me was this:  I put <dtml-call "RESPONSE.redirect('index_html')"> as 
the VERY FIRST LINE of the DTML Document.  But the problem still occurrs!!  

This just makes NO sense.

System:

RedHat 6.1
Zope 2.1.6

Have a better one,
	Curtis.

Error page:

        Zope Error

        Zope has encountered an error while publishing this resource. 

        TypeError

        Sorry, a Zope error occurred.

        Traceback (innermost last):
          File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 214, in publish_module
          File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 179, in publish
          File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 
202, in zpublisher_exception_hook
            (Object: ElementWithAttributes)
          File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 165, in publish
          File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
            (Object: register)
          File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 102, in call_object
            (Object: register)
          File /usr/local/Zope-2.1.6-src/lib/python/OFS/DTMLDocument.py, line 
166, in __call__
            (Object: register)
          File 
/usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, 
in __call__
            (Object: register)
          File /usr/local/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 
146, in __call__
            (Object: standard_html_header)
          File 
/usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, 
in __call__
            (Object: standard_html_header)
        TypeError: too many arguments; expected 2, got 3