[Zope-dev] Accessing Class Attribute values

Kevin Howe ap619@chebucto.ns.ca
Wed, 3 Nov 1999 12:23:07 -0400


I am trying to access the Class Attribute values (meta_type, class_icon,
class_id, etc.) from a simple base class by doing the following:

import Aquisition

class myClass:
   def __str__(self):
       meta = self.classMetaType()
       return meta

I've also tried:
    meta = classMetaType()
    return meta

and :
  return self.getClassAttr('meta_type','')

but none of these seem to work. How do you retreive these values?

KH