[Zope] sql results in "in" clause

Florian Reiser florian_reiser at gmx.de
Tue Jul 27 05:35:46 EDT 2004


Hello zopistas,

I want to store a selection list in a database table with the following
structure.

user | form | value
-----+------+-------
     |      |
     |      |
     |      |
     |      |

If the user enters the form again the stored selection list, is loaded from
the db again with an sql on user and form.
Could I then use an "if value in resultSet.value:" to check, if the value
was checked when the user stored the form? Or do I first have to extract the
value column in a list and then check against this list?

Regards

Florian Reiser

-- 
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl



More information about the Zope mailing list