Re: Bestimmten Content-Typ im aktuellen Verzeichnis finden

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hartmut Goebel wrote:
> Hartmut Goebel schrieb:
>
>> Das funktioniert leider nicht, wenn der context z.B. ein
>> "Document" ist. In diesem Fall soll "MeinArtikel" natürlich im
>> Folder gesucht werden. Daher ja der letzte Fall mit dem
>> aq_parent
>
> Ich habe nun eine Lösung gefunden.
>
> Diese funktioniert *nicht* <div tal:define=" folderish
> here/isPrincipiaFolderish | python:0; qm python:test(folderish,
> context.getFolderContents, context.aq_parent.getFolderContents);
> ">
>
> Diese funktioniert:
>
> <div tal:define=" folderish here/isPrincipiaFolderish | python:0;
> qm python:test(folderish, context,
> context.aq_parent).getFolderContents; ">
>
>
> Das würde aber bedeuten, dass der "default"-Teil der Funktion
> test() immer ausgewertet wird. *Argl* Ja, klar! Ist ja eine
> einnormale Python-Funktion mit call-by-value. So ein doofer Fehler
> sollte mich eigentlich nicht passieren :-(
>
Schreib doch solchen Code bitte als Skript oder Browserview  - sonst
brennt es zu sehr in den Augen :-)

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktfLx0ACgkQCJIWIbr9KYz2HACfVSw2RtYgyhq5syqKyE930X//
TxoAoOYdU0Qgg09fT5+XOcydoruEV7n3
=XEmd
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 331 B)
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:[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.