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
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to