You have
--------------------------------------------------------------------------------
grid = SQLFORM.grid(...,editargs={'onvalidation':x},..)
def x(form):
#dbg.set_trace()
print "in x"
--------------------------------------------------------------------------------
the editargs are passed to SQLFORM(...,**editargs).process(...) not to
process. You want:
--------------------------------------------------------------------------------
grid = SQLFORM.grid(...,onvalidation=x,..)
def x(form):
#dbg.set_trace()
print "in x"
--------------------------------------------------------------------------------
On Monday, 28 January 2013 14:09:42 UTC-6, backseat wrote:
>
> Sorry to bump: can anyone give me a pointer on this?
>
> Thanks.
>
> On Sun, 27 Jan 2013 09:02:45 +0000, [email protected] <javascript:>said:
>
> > On Sat, 26 Jan 2013 13:05:50 -0800 (PST), [email protected]
> > <javascript:>said:
> >
> > > grid takes formargs={}, createargs={}, editargs={}
> >
> > Thanks. I'm sorry if I'm being a bit slow here, but I *still* can't get
> > what I want to work. I've tried:
> >
> >
> --------------------------------------------------------------------------------
>
>
> > grid = SQLFORM.grid(...,editargs={'onvalidation':x},..)
> >
> > def x(form):
> > #dbg.set_trace()
> > print "in x"
> >
> --------------------------------------------------------------------------------
>
>
> >
> > ...but x is never called when editing items on the grid.
> >
> > What am I missing?
> >
> > Thanks.
> >
>
>
>
>
> --
> Love Linux? We want to hear from you!
> http://www.tiger-computing.co.uk/jobs/linux-support-consultant/
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.