26 Apr
2002
26 Apr
'02
8:40 p.m.
Joachim Schmitz writes:
If I have a pathinfo like
how can find out it B is a subobject of A, or if A and are on the same level ? otherway around, how can I find out if my Zope-folders are:
A B
A/B My prefered solution would involve an External Method: "hasOwnAttribute", implemented as:
from Acquisition import aq_base def hasOwnAttribute(obj,attr): return hasattr(aq_base(obj),attr) and then test "hasOwnAttibute(A,'B')". An alternative would be "'B' in A.objectIds()". Dieter