[Zope-dev] Python Script

Steve Alexander steve@cat-box.net
Fri, 23 Feb 2001 11:37:30 +0000


Cyril Elkaim wrote:

>
> How can I access the methods definitions of the zclass from an instance ?
> 
> I don't talk about calling them but getting an 'attribute' of the zclass
> knowing only its name at _runtime_ not _compile_ time?

I don't entirely understand what you want to do.

Calling a method on a ZClass instance involves getting the attribute 
that represents that method, then calling it. Get the object that 
represents the method, and do what you want with it.

Can you give me a concrete example?

-- 
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net