[Zope] Where is my BtreeFolder stored?

Andreas Jung lists at zopyx.com
Thu Nov 27 10:55:03 EST 2008

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'.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20081127/1c0d1f71/attachment.vcf 

More information about the Zope mailing list