acquired or not acquired ?
If I have a pathinfo like http://www.xxx.de/A/B 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 Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
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
participants (2)
-
Dieter Maurer -
Joachim Schmitz