DTML Zope (element of list?)

Lee Harr missive at frontiernet.net
Fri Jun 4 18:01:54 EDT 2004


On 2004-06-04, Holger Butschek <holger at butschek.com> wrote:
> Hy folks,
>
> I have a problem in Zope (DTML).
>
> I know, that it's a very simple problem, but I'm quite new to Zope.
>
> I want to check, if a sequence-item of a sql-statement is in a list called 
> groupsSW (this list might or might not be given by URL from a previous 
> window).
>

> <dtml-if "&dtml-PIDSCHLAGWORT;:&dtml-SCHLAGWORT; in 
>     groupsSW()">checked</dtml-if>

> If the element is in the list, then I want it CHECKED.
>


You will probably want to ask this question on the zope at zope.org
mailiing list. That is the best place for any and all zope questions.


The code in quotes needs to be a python statement. The way I read this
you are going to end up with something like ...

6:'foo' in groupsSW()





More information about the Python-list mailing list