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

Chris Farmiloe chris at motionpath.com
Thu Jan 12 13:48:15 EST 2006



ooo its a 0.27 dash ...

Heres some fixes/updates to my last @params patch

Hope it helps.




Chris Farmiloe
Design & Development.
Motionpath Digital Media Ltd.



On 5 Jan 2006, at 23:11, Bryan Soto wrote:

> 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
>
>
>
>
> _______________________________________________
> 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/20060112/51474589/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nitro.patch.gz
Type: application/x-gzip
Size: 14011 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060112/51474589/attachment.gz 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060112/51474589/attachment-0001.html 


More information about the Nitro-general mailing list