AW: AW: AW: [Zope-CMF] How to disable acquisition?
Jens Hauser
hauser at pilsgenuss.de
Wed Sep 1 09:47:10 EDT 2004
Hi Andrew,
grand! That's it. I'm sorry, I thought I also tried this one - but I think I
didn't. Thank you very much.
best regards,
Jens
> -----Ursprüngliche Nachricht-----
> Von: Andrew Veitch [mailto:andrew at logicalprogression.net]
> Gesendet: Mittwoch, 1. September 2004 15:27
> An: Jens Hauser
> Betreff: Re: AW: AW: [Zope-CMF] How to disable acquisition?
>
> Hey
>
> tal:condition="python: intro in here.contentIds()"
>
> assumes that intro is a variable that you've defined somewhere. To
> search for the string 'into' you'd need to do:
>
> tal:condition="python: 'intro' in here.contentIds()"
>
> Feel free to post to the list - I though I had copied the list in.
>
> A
>
> On 1 Sep 2004, at 14:09, Jens Hauser wrote:
>
> > Hi Andrew,
> >
> > sorry for not posting to the list, but I'd like to post the
> solution at
> > last. Is that ok?
> >
> > It still doesn't work - I already tried it. It throws me an
> error while
> > opening a folder:
> >
> >
> > ###CUT
> > Fehlertyp
> > NameError
> > Fehlerwert
> > name 'intro' is not defined
> > Anfrage erfolgt um
> > 2004/09/01 15:04:54.759 GMT+2
> >
> > ###CUT
> >
> > ####CUT
> > <div class="stx"
> > tal:condition="python: intro in here.contentIds()"
> > tal:define="doc nocall:here/intro| nothing"
> > tal:attributes="class
> > python:test(doc.text_format=='structured-text', 'stx', 'plain')">
> > <div tal:replace="structure
> > python:doc.CookedBody(stx_level=2)"
> > />
> > </div>
> > ####CUT
> >
> >
> > Sorry for the german error messages - "name 'intro' is not defined"
> > should
> > be the interesting one ...
> >
> > Any ideas?
> > Jens
> >
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: zope-cmf-bounces at lists.zope.org
> >> [mailto:zope-cmf-bounces at lists.zope.org] Im Auftrag von
> Andrew Veitch
> >> Gesendet: Mittwoch, 1. September 2004 14:57
> >> An: Jens Hauser
> >> Cc: zope-cmf at lists.zope.org
> >> Betreff: Re: AW: [Zope-CMF] How to disable acquisition?
> >>
> >> In Python it would be tal:condition="python:intro in
> >> here.contentIds()"
> >>
> >> Hope that helps
> >>
> >> A
> >>
> >> On 1 Sep 2004, at 13:33, Jens Hauser wrote:
> >>
> >>> Hi Andrew,
> >>>
> >>> sorry to ask this newbie question, but: How can I use your
> >> solution in
> >>> that
> >>> case?
> >>>
> >>> This won't work ...
> >>>
> >>> ####CUT
> >>> tal:condition="python: intro in here.contentIds"
> >>> ####CUT
> >>>
> >>> Best regards,
> >>> Jens
> >>>
> >> --
> >> Logical Progression Ltd, 20 Forth Street, Edinburgh EH1 3LH, UK
> >> Tel: +44 (0)131 550 3733 Web: http://www.logicalprogression.net/
> >>
> >> _______________________________________________
> >> Zope-CMF maillist - Zope-CMF at lists.zope.org
> >> http://mail.zope.org/mailman/listinfo/zope-cmf
> >>
> >> See http://collector.zope.org/CMF for bug reports and
> feature requests
> >>
> >
> >
> >
> --
> Logical Progression Ltd, 20 Forth Street, Edinburgh EH1 3LH, UK
> Tel: +44 (0)131 550 3733 Web: http://www.logicalprogression.net/
>
>
More information about the Zope-CMF
mailing list