On Friday, April 1, 2016 at 12:46:24 PM UTC-7, lucas wrote: > > hello one and all, > > i have to create a mock or dummy row from a table. so i want all of the > field name without values or None values. then i want to fill in a few of > the values and then pass it to a rather complex function for its result. > > what is the best method to do this? > > Getting the field names is straightforward ... there was a recent post by Anthony on this <URL:https://groups.google.com/d/msg/web2py/XjP4_C1FDrU/I0S320q0BgAJ> (oops ... October is recent?)
I haven't tried creating a ROW object by hand, so I'm not sure how to initialize it (selects provide them already initialized :-) ). If that's not straight forward, then making a dummy table and later dropping it might work for you. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.

