[ZCM] [ZC] 1969/ 1 Request "Request marshllers inconsistent"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Dec 14 14:55:23 EST 2005
Issue #1969 Update (Request) "Request marshllers inconsistent"
Status Pending, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/1969
==============================================================
= Request - Entry #1 by bacarter on Dec 14, 2005 2:55 pm
The :foo marshallers are inconsistent with empty values:
<input type="hidden" name="emptylist:list" value="" />
<input type="hidden" name="emptylines:lines" value="" />
<input type="hidden" name="emptytuple:tuple" value="" />
<input type="hidden" name="emptytokens:tokens" value="" />
Sumbitting a form like this gives you:
emptytuple ('',)
emptytokens []
emptylist ['']
emptylines ['']
Also as of zope 2.8.4-final I get
emptylines []
emptytokens []
emptytuple ('',)
emptylist ['']
This seems quite odd; the :tokens marshaller has the correct behavior but it seems more desireable to return empty tuples or lists for the others. It also might be nice to inculde a :default for these options similar to :records.
==============================================================
More information about the Zope-Collector-Monitor
mailing list