[Zope] Python Classes and Zope.

Andreas Jung lists at andreas-jung.com
Thu Dec 1 10:56:58 EST 2005



--On 1. Dezember 2005 13:46:55 -0200 Fernando Lujan 
<fernando.lujan at terra.com.br> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20051201/f6efd5e0/attachment.bin


More information about the Zope mailing list