Jean-Pascal Houde wrote:
Hi,

I remember getting an attribute error on available, and it was because
of an exception that was happening in the method (available). For
some
reason the exception was being stopped somewhere and an AttributeError
was
what I was seeing instead.
So are you sure that your code isn't triggering any exception?

(For exemple, self._data() could return None instead of [] so len
would not work and raise an exception)

I think that's right - you get the AttributeError due to some weirdness to do with the @property descriptor when an error is thrown in the handler.

Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to