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:
>                 if hasattr(i, 'djname'): #get djname variable
>                     if hasattr(i, 'mixing_for()'):  #try to get
> mixing_for() method

did you try removing the parenthesis, like:

if hasattr(i, 'mixing_for')

good luck

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE



_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to