On Sunday, January 12, 2014 2:43:33 PM UTC-5, zee wrote: > > I believe the function definition : > def get_onrp(npa, lns, npc=0): > does set the value of npc to 0 if the argument is not passed to the > function call. >
Yes, but your code always passes form.vars.npc as the third argument, so that is irrelevant. -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.