[Zope] call does only work inside my product
Joachim Schmitz
js@aixtraware.de
Mon, 13 Jan 2003 14:17:38 +0100
replying to myself:
it was my fault, I named a parameter to the pythonscript the same as an=20
index in the catalog, this parameter is passed in the REQUEST-namespace,=20
and if the catalog finds an value for an indexname in the REQUEST, it takes =
this for a searching. This is one of the examples where Zope does not=20
follow "explicit is better than implicit.
--On Montag, Januar 13, 2003 13:00:42 +0100 Joachim Schmitz=20
<js@aixtraware.de> wrote:
> 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 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
> 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/
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
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/