[Product-Developers] Re: AGX neither a method nor a callable

Maurits van Rees m.van.rees at zestsoftware.nl
Thu Sep 10 09:37:36 UTC 2009


On Thu, Sep 10, 2009 at 11:32:52AM +0200, Roijen, Bas wrote:
> I got it!
> It was getting its own title and not that of it's parent, found this out
> by trying to get the id. It returned the name of the contenttype.
> So how do i get the title of the parent and not of itself?

Try self.aq_inner.aq_parent.Title().  Depending on the exact
code path the aq_parent might not be what you expect and the extra
aq_inner should help there.

-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"Yes, we study economics,
got to make the money make some kind of sense."  - Geoff Mann




More information about the Product-Developers mailing list