Hi Ed :-)
StarRave marches on I see...
I'm assuming mixing_for is a method?
> if hasattr(i, 'mixing_for()'): #try to get
> mixing_for() method
> days_mixing=getattr(i,'mixing_for()')
in which case the above should be:
if hasattr
On Wed, 19 Jul 2000, ed colmar wrote:
> I have a method that looks through "objectValues". Using "hasattr" and
> "getattr" I can see the variables contained in the object.
>
> How do I get the values generated from an object's method in a similar
> fashion?
>
> For example:
>
days_mixing = getattr(i, 'mixing_for')
a = days_mixing()
> -Original Message-
> From: ed colmar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 19, 2000 11:09 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] looping through objectValues, how to get methods?
>
>
> I have a method that loo