[Zope] creating and using a python object

Dieter Maurer dieter@handshake.de
Wed, 21 Feb 2001 19:54:53 +0100 (CET)


Joh Johannsen writes:
 > I've got the following python class:
 > 
 > class TestClass:
 >   def __init__(self):
 >     pass
 > 
 >   def getValue(self):
 >     return 'test'
 > 
 > How can I create an instance of it, and use it from within a DTML page?
You can put it into a product (HowTo on zope.org)
or use it in an external method.

In both cases, you would need to learn something about Zope
security. There is a documentation of Brian about this topic
on zope.org.


Dieter