That worked great!
     session.languages          = self.request.get_all('language')

Database model defines column:
   languages           = db.StringListProperty()   #stores multiple
languages


Now - I have the data stored, and I want to display it back on the
form (the form is spread across 5 pages, and the user can move
backward and forward between the 5 pages).  I have stored the data in
a "Session" table and using Session objects to tie it together.

The list of languages might contain for example: English, Spanish,
French.
The form needs to set the checkboxes as "checked" if the appropriate
language is in my list, something like this:

    <img src="http://3wcloud.com/images/flags/english.jpg";>
&nbsp;&nbsp;
    <input type="checkbox" name="language" value="English" />&nbsp;
        {% ifequal Session.languages 'English' %}
        checked
        {% endifequal %}
        >English<br />

In the above, the keyword "ifequal" will do the job.

Is there some keyword like "iflistcontains"?    Do I have to do a
forloop and test myself?

Thanks,
Neal Walters


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to