[Zope-dev] Python Script

Cyril Elkaim cyril.elkaim@free.fr
Fri, 23 Feb 2001 11:03:34 +0100 (CET)


       Hi All,

I must say that I have very hard time with both Scripts and Zclass.
My problem is the context and the container proprties of a script inside a Zclass.

If I understand well the context is an URL point of view, the object accessed
through the web.

The container is fixed, it's the object in the database, OK?

Now what is the container in the case of a Zclass _instance_. When I test
a script inside the zclass _definition_ the container.objectItems() returns
correctly all the other methods of the definition. When I run the script
inside an _instance_ of that zclass it returns nothing.

So is an instance the same container of its zclass definition or something
else?

What I should want to do is to access the images inside a zclass definition
from the script running in an _instance_ 'context' of that zclass.

BTW some pointers explaining the hierarchy in both the URL point of view
and the database point of view would be very welcomed :-)

Thanks in advance,
Cyril