[Zope] Problem with new Banner System (and workaround

Bill Anderson bill.anderson@libc.org
Sat, 19 Feb 2000 02:02:12 -0700


Umm ... seem to have generated an issue with Renderable in the first
traceback.

If I put my new banner product into use with <dtml-var VBanner>, I get
this:

Traceback (innermost last):
  File /home/web/www.libc.org/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /home/web/www.libc.org/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /home/web/www.libc.org/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /home/web/www.libc.org/lib/python/ZPublisher/Publish.py, line
165, in publish
  File /home/web/www.libc.org/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: Main)
  File /home/web/www.libc.org/lib/python/ZPublisher/Publish.py, line
102, in call_object
    (Object: Main)
  File /home/web/www.libc.org/lib/python/OFS/DTMLDocument.py, line 166,
in __call__
    (Object: Main)
  File /home/web/www.libc.org/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: Main)
  File /home/web/www.libc.org/lib/python/OFS/DTMLMethod.py, line 141, in
__call__
    (Object: standard_html_header)
  File /home/web/www.libc.org/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: standard_html_header)
  File /home/web/www.libc.org/lib/python/OFS/DTMLMethod.py, line 141, in
__call__
    (Object: LeftColumn)
  File /home/web/www.libc.org/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: LeftColumn)
  File /usr/lib/zope/lib/python/Products/Renderable/Renderable.py, line
10, in __str__
    (Object: Renderable)
TypeError: (see above)

If I use: <dtml-var "VBanner()"> I get:

<!--
Traceback (innermost last):
  File /home/web/Vhosts/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /home/web/Vhosts/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /home/web/Vhosts/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /home/web/Vhosts/lib/python/ZPublisher/Publish.py, line 165, in
publish
  File /home/web/Vhosts/lib/python/ZPublisher/mapply.py, line 160, in
mapply
    (Object: index_html)
  File /home/web/Vhosts/lib/python/ZPublisher/Publish.py, line 102, in
call_object
    (Object: index_html)
  File /home/web/Vhosts/lib/python/OFS/DTMLMethod.py, line 145, in
__call__
    (Object: index_html)
  File /home/web/Vhosts/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
    (Object: index_html)
  File /home/web/Vhosts/lib/python/DocumentTemplate/DT_Util.py, line
335, in eval
    (Object: VBanner())
    (Info: VBanner)
  File <string>, line 0, in ?
AttributeError: (see above)

If I call it directly, all is fine. Or if I use <dtml-var
"VBanner.get_banner()"> it works as expected.

Any ideas? What went wrong?

TIA,
 Bill

-- 
In flying I have learned that carelessness and overconfidence are 
usually far more dangerous than deliberately accepted risks. 
          -- Wilbur Wright in a letter to his father, September 1900