--On 1. Dezember 2005 13:46:55 -0200 Fernando Lujan <[EMAIL PROTECTED]> wrote:

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()

PythonScripts are for *scripting* not for implementing complex
logic and for programming tasks that require classes. PythonScripts don't provide full Python functionality that why were are talking of *Restriced Python*. Consider writing your functionality as Python product.


Attachment: pgpoQ5PUjvcGD.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to