--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()
x.f()


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.

-aj

Attachment: pgpoQ5PUjvcGD.pgp
Description: PGP signature

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

Reply via email to