[Zope] Bizarre error with standard_html_header

2000-07-11 Thread Curtis Maloney

Ok...

i dtml-commented out standard_html_header, and it worked fine..

What gets me is the header should work fine.  If I understand Acquisition 
properly, the object should be rendered from within the namespace of the 
directory it's being called in.  

So, if i get "/internal/register", and register exists in / not /internal, 
then it will be rendered as if it was in /internal.

Fine.  In that case, the standard_html_header in /internal, which requires 
the existance of various objects in /internal, should render fine.

What confuses me is the "TypeError: too many arguments; expected 2, got 3".  
How can this be happening?

What am I missing, here?

Have a better one,
Curtis Maloney



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Bizarre error with standard_html_header

2000-07-11 Thread Curtis Maloney

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  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

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )