[Product-Developers] Re: AGX neither a method nor a callable
bas.roijen at cofely-gdfsuez.nl
Thu Sep 10 09:32:52 UTC 2009
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?
Thanks in advance!
Van: product-developers-bounces at lists.plone.org
[mailto:product-developers-bounces at lists.plone.org] Namens Maurits van
Verzonden: donderdag 10 september 2009 11:01
Aan: product-developers at lists.plone.org
Onderwerp: [Product-Developers] Re: AGX neither a method nor a callable
bad_my84, on 2009-09-10:
> Found part of the problem... me! (shame shame)
> If I added the method in the right place, inside the class that is, it
> wouldn't have had the error.
> Now I can get the values from all fields from it's parent, except the
> With .Title() there is no value and with .getTitle() there's an error?
getTitle does not exist so I would expect an attribute error. Title
The names Title and Description do not have the 'get' in front of them
as the Dublin Core metadata standard expects to be able to ask for Title
and Description. I don't know the details, but this probably helps when
other systems need to interact with Plone, presenting a familiar
That sais, 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.
In your browser you can also go to <url of parent>/Title and see what
that returns. I wonder if that perhaps returns nothing in your case.
Maurits van Rees | http://maurits.vanrees.org/
Work | http://zestsoftware.nl/ "This is your day, don't let
them take it away." [Barlow Girl]
Product-Developers mailing list
Product-Developers at lists.plone.org
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