[Zope] How to check if an object is Folderish ?
Stefan H. Holek
stefan@epy.co.at
Fri, 07 Feb 2003 10:49:56 +0100
ObjectManagers define 'isAnObjectManager=1'. You could do something like:
from Acquisition import aq_base
def is_folderish(object):
return getattr(aq_base(object), 'isAnObjectManager', 0)
HTH,
Stefan
--On Donnerstag, 06. Februar 2003 21:18 +0100 Gilles Lenfant
<gilles@pilotsystems.net> wrote:
> Hi,
>
> All's in the title !
> is there something like "ob.isFolderish()" that ignores acquisition ?
>
> Thanks in advance
>
> --Gilles
--
Those who write software only for pay should go hurt some other field.
/Erik Naggum/