[Zope] AttributeError __div__

Joel Burton jburton@scw.org
Sun, 11 Mar 2001 12:57:54 -0500 (EST)


On Sun, 11 Mar 2001, Axel Missbach wrote:

> Sometimes i get the AttributError __div__ or __len__
> Unfortunately i do not know whats the reason for.
> 
> What does it mean?
> 
> Is there an errorlist with the possible values and perhaps a
> discribtion?

__len__ is the python function for 'find-the-length-of' a class, and
__div__ for 'divide' a class.

You're probably getting __div__ because you're trying things like

<dtml-var folder/file>

or something like that, hoping show a file within a folder. This should
instead be

<dtml-with folder>
  <dtml-var file>
</dtml-with>

(or dtml-var "folder.file"> in some cases, though that means something
different)

In any event, if you're getting __div__, Zope probably thinks your trying
to divide something.

-- 
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington