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

Shane Hathaway shane@digicool.com
Thu, 31 May 2001 20:01:24 -0400


marc lindahl wrote:
> Now, I get:
> Error type: AttributeError
> Error value: 'string' object has no attribute 'cooked_text'
> 
> Also, stuff like bio.text, which used to work, gives the same error.  For
> some reason what used to be an (Document) object, zope now thinks is a
> string??

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.

Now I remember why I didn't like using __call__ in the first place.  But
Jim said it's better that way, so a little faith is warranted. :-)

Shane