Re: simple widget usage

0 views
Skip to first unread message

Julius Minka

unread,
Sep 10, 2008, 12:40:35 PM9/10/08
to web...@googlegroups.com
On St, 2008-09-10 at 18:38 +0200, Julius Minka wrote:
> Hi all,
>
> what is wrong with the following snippet?
>
> def new():
> dba.ware.param4.widget=lambda self,value:INPUT(_type='hidden')
> form=SQLFORM(dba.ware)
> if form.accepts(request.vars,session):
> redirect(URL(r=request,f='browse'))
> return dict(form=form)
>
> line with widget doesn't change param4 field at all.
>
> thanks,
> Julius


just to add:
I am using latest sqlhtml.py from Massimo

Julius Minka

unread,
Sep 10, 2008, 1:00:01 PM9/10/08
to web...@googlegroups.com

On St, 2008-09-10 at 18:40 +0200, Julius Minka wrote:
> > dba.ware.param4.widget=lambda self,value:INPUT(_type='hidden')

>

> just to add:
> I am using latest sqlhtml.py from Massimo

I replaced sqlhtml.py with the version from svn 2 days old and it is ok
now.

Julius Minka

unread,
Sep 10, 2008, 12:32:45 PM9/10/08
to web...@googlegroups.com
Hi all,

what is wrong with the following snippet?

def new():


dba.ware.param4.widget=lambda self,value:INPUT(_type='hidden')

Massimo Di Pierro

unread,
Sep 10, 2008, 1:15:37 PM9/10/08
to web...@googlegroups.com
Just to make sure. Can you try the version in trunk? 394

Massimo

Julius Minka

unread,
Sep 10, 2008, 1:32:31 PM9/10/08
to web...@googlegroups.com
Massimo,

it works with version 394 currently in trunk.

julius

Reply all
Reply to author
Forward
0 new messages