[Zope] Re: Properties
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Mon, 03 Mar 2003 17:33:29 +0100
Andreas Jung wrote:
> hasattr()
>
> --On Montag, 3. März 2003 15:34 +0100 "Jens JB. Bjerre"
> <jens@bkinformatik.dk> wrote:
>>
>> Is there anyway how I can test, if an object (of any kind) has a special
>> property.?
Depending on your problem hasProperty() will be better than hasattr(),
because hasattr() returns true for acquired properties as well.
-mj
--
Deutsche/German Zope User Group (DZUG)
http://www.dzug.org/Members/mjablonski/