hello,
is it possible to get the list of all an object's attributes, excepted
the ones acquired from parents ?
thanks
--
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
--On 26. Juni 2006 10:30:50 +0200 thomas desvenain
[EMAIL PROTECTED] 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
pgpMviKcFFgYC.pgp
Description: PGP signature
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 [EMAIL PROTECTED]:
--On 26. Juni 2006 10:30:50 +0200 thomas desvenain
[EMAIL PROTECTED] wrote:
hello,
is it
--On 26. Juni 2006 10:53:39 +0200 thomas desvenain
[EMAIL PROTECTED] 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
2006/6/26, Andreas Jung [EMAIL PROTECTED]:
--On 26. Juni 2006 10:53:39 +0200 thomas desvenain
[EMAIL PROTECTED] 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
--On 26. Juni 2006 13:37:46 +0200 thomas desvenain
[EMAIL PROTECTED] wrote:
'metadata'? This is an unkown term in the context of Zope/Python objects
except for catalog brain objects...what you you mean?
sorry, it's because i work with at/plone objects :
toto.__dict__ displays only some
Andreas Jung wrote at 2006-6-26 10:35 +0200:
...
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__ ?
This can be optimized to obj.__dict__ (because attributes starting
with _ are never acquired).
Be warned