[Zope] Python Classes and Zope.

Fernando Lujan fernando.lujan at terra.com.br
Thu Dec 1 10:46:55 EST 2005


There's a way to use a Python class inside zope?

For instance, if I create the class:

class MyClass:
     "A simple example class"
     i = 12345
     def f(self):
         return 'hello world'

Can I invoke the following code inside a Python Script?

x = MyClass()
x.f()

I'm using zope 2.7.x series.

Thanks in advance.

Fernando Lujan


More information about the Zope mailing list