[Zope] Using classes in python extensions...

Dieter Maurer dieter@handshake.de
Tue, 22 Jul 2003 23:21:36 +0200


Robert McPeak wrote at 2003-7-21 10:49 -0700:
 > I'm sure that this is a silly question, but I'm going ask it anyways... ;)
 > 
 > How do I instantiate/use classes inside of a python extension from zope?

In the same way, you do it always :-)

  from module import class_

  class MyClass(class_):.... # use as base class
    attr= class_.attr	     # access to class attribute

  instance= class_(...)	     # instantiation
   

For further information, please read the Zope Developer Guide.


Dieter