27 Nov
2008
27 Nov
'08
3:55 p.m.
On 27.11.2008 16:09 Uhr, Mr SZ wrote:
def test4(): if 'suftest' in aq_parent.objectIds(): return 'True'
Running test4 gives this error: Error Type: AttributeError Error Value: 'builtin_function_or_method' object has no attribute 'objectIds'
...because you are guessing code and syntax. Either use obj.aq_parent or aq_parent(obj) for getting hold of the acquisition parent of 'obj'. -aj