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

Tom P. Allred tom at allreddata.com
Tue Sep 2 12:44:47 EDT 2003


Problem solved.

On a wild guess I removed 'value="opt value"' and now it works correctly.

Thanks,
Tom P. Allred
Tom at AllredData.com


-----Original Message-----
From: zpt-bounces at zope.org [mailto:zpt-bounces at zope.org]On Behalf Of Tom
P. Allred
Sent: Tuesday, September 02, 2003 11:02 AM
To: zpt at zope.org
Subject: [ZPT] option tag syntax in Zope Book example for ZCatalog


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



_______________________________________________
ZPT mailing list
ZPT at zope.org
http://mail.zope.org/mailman/listinfo/zpt




More information about the ZPT mailing list