[z3-five] Some problems I found porting Silva views

Guido Wesdorp guido at infrae.com
Tue Jun 22 18:32:16 MEST 2004


Guido Wesdorp wrote:

> 4. (minor one and discussed by faassen on the channel) form vars 
> aren't passed to methods as arguments, so for a request to 
> 'some_method?foo=bar' some_method is called without the 'foo' 
> argument, to get it's value one needs to use something like 
> 'request['foo']'
>
Philipp requested an example setup of this problem, I hacked up the 
FiveViewsDemo so it displays nicely what goes wrong. Install the demo, 
go to some folder and add '/test?some_var=some_value' to the URL and 
you'll see that there's no argument for the function (it would actually 
fail if I'd remove the default value from the argument) and that the 
value of some_var can be found in the request.

Cheers,

Guido
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FiveViewsDemo-problem-demo.tgz
Type: application/x-gtar
Size: 4874 bytes
Desc: not available
Url : http://codespeak.net/pipermail/z3-five/attachments/20040622/d321b573/FiveViewsDemo-problem-demo.gtar


More information about the z3-five mailing list