[Zope] a question about aq_base

Jens Vagelpohl jens at dataflake.org
Tue Nov 28 12:26:07 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 28 Nov 2006, at 14:23, Yuri wrote:

> Hi!
>
> here: http://docs.neuroinf.de/programming-plone/ate we can read:
>
>
>        obj = brain.getObject().aq_base
>
> why .aq_base and not only brain.getObject()? :)

You are not presenting this one line in its context. No one will be  
able to tell you whether that is necessary wherever it is mentioned,  
because no one knows the stuff you omitted.

In normal situations "getObject" is all you need. I don't know any  
standard situation where you would not want the returned object  
acquisition-wrapped.

jens


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFbHEyRAx5nvEhZLIRAnC3AJ9bwRC7ca3l+1KKA1F1M6cN9972RACglzQI
QaSWjPJb6566aB1AHY+kZAI=
=HOTR
-----END PGP SIGNATURE-----


More information about the Zope mailing list