[Zope] get non-acquired attributes of an instance

2006-06-26 Thread thomas desvenain
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

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Andreas Jung
--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

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread thomas desvenain
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

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Andreas Jung
--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

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread thomas desvenain
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

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Andreas Jung
--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

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Dieter Maurer
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