[ZPT] option tag syntax in Zope Book example for ZCatalog

Tom P. Allred tom at allreddata.com
Tue Sep 2 12:01:41 EDT 2003


Hi,

I was working the Zoo News examples in
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.st
x and am having a problem with the multiple selection by author.  Here is
the section of code that I'm questioning.

<select name="author:list" size="6" multiple>
<option
   tal:repeat="item python:here.NewsCatalog.uniqueValuesFor('author')"
   tal:content="item"
   value="opt value">
</option>
</select>

The code correctly pulls and lists the names but returns no results if one
of more authors are selected.  If no authors are selected then the correct
records are listed based on whatever other selection criteria I've entered.
I was wondering if the 'value' attribute is being set correctly.  A search
of the Zope site for "opt value" turned up only the link above.  Should
'value' be set to something else?

Thanks,
Tom P. Allred
Tom at AllredData.com





More information about the ZPT mailing list