[Zope] __call__ error message - I gave up
Peter Bengtsson
peter@grenna.net
Wed, 16 Aug 2000 11:47:51 +0100
Maybe you've got the syntax wrong. Have you tried these, and what they
return.
<dtml-in "objectItems(['DTML Document'])">
<dtml-var sequence-item>
</dtml-in>
<dtml-in "objectValues(['DTML Document'])">
<dtml-var sequence-item>
</dtml-in>
<dtml-in "mycurrentfolder.objectItems(['DTML Document'])">
<dtml-var sequence-item>
</dtml-in>
<dtml-in "mycurrentfolder.objectValues(['DTML Document'])">
<dtml-var sequence-item>
</dtml-in>
<dtml-in "PARENTS[0].objectItems(['DTML Document'])">
<dtml-var sequence-item>
</dtml-in>
<dtml-in "PARENTS[0].objectValues(['DTML Document'])">
<dtml-var sequence-item>
</dtml-in>
I honestly don't know the difference. If my DTML doesn't work I tend to
trial-and-error my way to it, and not bother why things happen and don't
happen.
Don't give up!!
Cheers, Peter
> What I like to do is pretty simple, but I don't get it. The following code
> snippet is simple and what I want to is straightforward:
>
> <dtml-in "objectItems('DTML Document')">
> <dtml-var sequence-item>
> </dtml-in>
>
> All DTML Documents in a Folder should be put together in one document. It
> works fine, if there is no reference to another object. But when I put
> something like
> <dmtl-var imageobject> in one of this DTML Document I get the appended
error
> message.
>
> Any Idea
>
> Jens
>
> ----------------------------------------------------
> Error Type: AttributeError
> Error Value: __call__
>
>
> Traceback (innermost last):
> File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 222, in
> publish_module
> File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
> publish
> File E:\Programme\WebSite\lib\python\Zope\__init__.py, line 221, in
> zpublisher_exception_hook
> (Object: Traversable)
> File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 171, in
> publish
> File E:\Programme\WebSite\lib\python\ZPublisher\mapply.py, line 160, in
> mapply
> (Object: index_html)
> File E:\Programme\WebSite\lib\python\ZPublisher\Publish.py, line 112, in
> call_object
> (Object: index_html)
> File E:\Programme\WebSite\lib\python\OFS\DTMLMethod.py, line 172, in
> __call__
> (Object: index_html)
> File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line
> 502, in __call__
> (Object: index_html)
> File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_In.py, line
691,
> in renderwob
> (Object: objectItems('DTML Document'))
> File E:\Programme\WebSite\lib\python\OFS\DTMLDocument.py, line 167, in
> __call__
> (Object: subdocument)
> File E:\Programme\WebSite\lib\python\DocumentTemplate\DT_String.py, line
> 502, in __call__
> (Object: subdocument)
> AttributeError: (see above)
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )
>