Re: [Zope] get non-acquired attributes of an instance
aq_base(aq_inner(obj)).__dict__ ? hmm it doesn't works, i get metadata only, and with dir(aq_base(aq_inner(test.toto))) i get acquired methods too... 2006/6/26, Andreas Jung <lists@zopyx.com>:
--On 26. Juni 2006 10:30:50 +0200 thomas desvenain <thomas.desvenain@gmail.com> wrote:
hello,
is it possible to get the list of all an object's attributes, excepted the ones acquired from parents ?
aq_base(aq_inner(obj)).__dict__ ?
-aj
-- Thomas Desvenain Junior Plone/Zope analyst-developer, Looking for a Job ! Now, trainee at Institut National de Recherche Agronomique Mathématiques, Informatique et Génôme laboratory 78350 Jouy en Josas +33 (0)1 34 65 29 43
--On 26. Juni 2006 10:53:39 +0200 thomas desvenain <thomas.desvenain@gmail.com> wrote:
aq_base(aq_inner(obj)).__dict__ ?
hmm it doesn't works, i get metadata only,
'metadata'? This is an unkown term in the context of Zope/Python objects except for catalog brain objects...what you you mean?
and with
dir(aq_base(aq_inner(test.toto)))
i get acquired methods too...
Of course yes...that's standard Python behavior. -aj
participants (2)
-
Andreas Jung -
thomas desvenain