[Zope-CMF] what happened to Document???

marc lindahl marc@bowery.com
Thu, 31 May 2001 20:20:07 -0400


> From: Shane Hathaway <shane@digicool.com>
> 
> At some point the DTML is calling the document, which now renders it.
> It's probably that old quoted-expression gotcha. <dtml-var bio> !=
> <dtml-var "bio">.  You'll want quotes.


That's not it...   

<dtml-var "bio" fmt=structured-text>

is not the same as what used to work:

<dtml-var "bio.cooked_text">


I'm not looking for an entire page with header and footer, just the cooked
text.  The Document bio used to work, it had properties cooked_text, text,
etc. and when I look in the latest (just checked out 1/2 hour ago)
Document.py, it looks like that stuff is still in there....  but for some
reason, something somewhere (DT_Util is at the bottom of the traceback)
things bio is now a string object.

Here's the traceback:


Traceback (innermost last):
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/OFS/DTMLMethod.py, line 189, in
__call__
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 307, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 305, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Return.py,
line 104, in render
    (Object: artist_index)
  File /usr/local/zope/Zope-2.3.1/lib/python/OFS/DTMLMethod.py, line 182, in
__call__
    (Object: artist_index)
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: artist_index)
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 292, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 259, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 239, in debugException
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 257, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Util.py,
line 334, in eval
    (Object: bio.cooked_text)
    (Info: bio)
  File <string>, line 0, in ?
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Util.py,
line 127, in careful_getattr
AttributeError: (see above)