[Zope] call does only work inside my product

Joachim Schmitz js@aixtraware.de
Mon, 13 Jan 2003 13:00:42 +0100


Hi,

It is a little bit hard to describe this problem:

I have a selfwritten product the class defined like this:

class AixtraTableProduct(ZCatalog.ZCatalog)

I created a product-instance called content, in a python-script inside the=20
content-instance-folder, I can do:

result =3D context()
print result
return printed

and I get all items in my products catalog.

But when I put a python-script in a folder, which contains the=20
product-instance content and do:

result =3D context.content()
print result
return printed

the result is always empty.

any hint is welcome.

Mit freundlichen Gr=FC=DFen                              Joachim Schmitz
--------------------------------------------------------------------
AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen
H=FCsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163
--------------------------------------------------------------------
Key fingerprint =3D DA10 CC82 62F8 1DBB 39A1  1EDC 725B 3317 A8D7 C3A6
Keyserver: http://www.keyserver.net/en/