Re: [Zope] looping through objectValues, how to get methods?

2000-07-19 Thread Chris Withers
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

Re: [Zope] looping through objectValues, how to get methods?

2000-07-19 Thread Jerome Alet
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: >

RE: [Zope] looping through objectValues, how to get methods?

2000-07-19 Thread Chris McDonough
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