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

Roijen, Bas bas.roijen at cofely-gdfsuez.nl
Thu Sep 10 09:43:09 UTC 2009


Tried that, but is gives the same result.


-----Oorspronkelijk bericht-----
Van: Maurits van Rees [mailto:m.van.rees at zestsoftware.nl] 
Verzonden: donderdag 10 september 2009 11:38
Aan: Roijen, Bas
CC: product-developers at lists.plone.org
Onderwerp: Re: [Product-Developers] Re: AGX neither a method nor a
callable

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 
================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en 
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht 
onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en 
de afzender direct te informeren door het bericht te retourneren. 
================================================
The information contained in this message may be confidential 
and is intended to be exclusively for the addressee. Should you 
receive this message unintentionally, please do not use the contents 
herein and notify the sender immediately by return e-mail.
================================================




More information about the Product-Developers mailing list