[Nitro] PATCH: Multipart forms and @params, Some Controls code updates.

Bryan Soto bryan.a.soto at gmail.com
Thu Jan 5 18:11:10 EST 2006


Just a quick note, after applying this patch there was an additional failure
in the nitro unit tests:

  3) Failure:
test_parse_query_parameters(TestAdapterCgi) [./test/nitro/tc_cgi.rb:36]:
<2> expected but was
<3>.

On 1/5/06, Chris Farmiloe <chris at motionpath.com> wrote:
>
>
>
> Happy 2006 list!...
>
> Haven't quiet got round to getting up to speed with the list
> -99 nitro emails was my christmas present from the list ;-)
> sure it's all great!
>
> anyway. here's some patches:
>
> Mostly control code related, (and there'll be more to follow including
> a blob upload control), started an array control.
>
>
> Fixed the multipart form data issues not being compatible with
> the @params hash, I think I also made the params array operate like
> someone on the list wanted (request['this.that'] and
> request['this']['that']
> should both work - will maybe move this functionality to the request []
> method
> if everyone things that the @params hash looks a mess.
>
> --next step is to make the structure_params function recursive so that
> more complicated depth can be achieved with the POST data ie. INPUTS with
> names:
>
> name="person.name"
> name="person.address.name"
> name="person.address.line1"
> name="person.address.line2"
> name="person.address.phone[]"
> name="person.address.phone[]"
>
> creating the @params (request) hash as
>
> {
> 'person' => {
> 'address' => {
> 'name' => 'string',
> 'line1' => 'string',
> 'line2' => 'string',
> 'phone' => ['string','string']
> }
> }
> }
>
>
>
> right. home time.
>
>
>
>
>
>
>
>
>
> chrisfarms
> Design & Development.
>
>
>
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060105/d5ca3c92/attachment.html 


More information about the Nitro-general mailing list