On 10.05.09 14:48, Dganit David wrote:
HI
I’m new to zope and python, I wrote some basic python class and a test
program using this class.
The script is working fine when running python from command line.
Now I want to uses this class inside zope,
I tried to create the script, but it failed with the following error.
Line 5: __init__ is an invalid variable name because it starts with _
Can I write a constructor with different name?
Please advice what is the correct why to import this class to zope
PythonScripts are *not* a replacement for pure Python code.
PythonScripts are restricted. Class definitions belong into trusted code
(browser views, externals method or a Zope product).
http://docs.zope.org/zope2/zdgbook/
-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
___
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 )