-----Original Message----- From: Thomas Weiner [mailto:weiner@tu-harburg.de] Sent: Wednesday, June 23, 1999 5:36 PM To: zope@zope.org Subject: [Zope] Handling lists in requests?
Hi,
is there a way to handle lists in requests properly?
For Example:
I have a form getting a list containing a few 'inner' lists from an external method 'ldif' (maybe that's already ugly). I want to give this list-construct via a request to an action form.
<FORM action="show_it" method="post"> <!--#call "REQUEST.set('adr_list',ldif(filename))"--> <input type = "hidden" name="adr_list" value="<!--#var adr_list-->">
Hidden input types aren't smart enough to pass around things like lists. You'll have to build the list from a compound list of hidden inputs. <!--#in adr_list--> <input type="hidden" name="adr_list:list" value="<!-- #sequence-item-->"> <!--#/in--> This little kludge will end up making ZPublisher (upon recieving the request) to marshal all of the hidden values into a list (note the ':list') called 'adr_list'. -Michel
<!--#in adr_list sort--> doing some stuff <!--#/in adr_list sort-->
The <!--#in adr_list--> action works fine, but when trying the same <!--#in adr_list--> in 'show_it' I receive an Error:
Error type: InError Error value: Strings are not allowed as input to the in tag.
How should I handle this?
thanks Thomas -- fon: ++49 (0)40 42878 3781 fax: ++49 (0)40 42878 2728
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Michel Pelletier