[web2py] Re: Issue with SQLFORM.factory() and IS_IN_SET()

2011-08-20 Thread TheSweetlink
Nevermind. Got it. There was a mismatch in # of fields between SQLFORM.factory and my custom form in the view. This caused the form to have errors rather than being accepted. I will be more careful in the future with my custom forms. Thank you Richard for your help. -David

[web2py] Re: Issue with SQLFORM.factory() and IS_IN_SET()

2011-08-19 Thread TheSweetlink
Please excuse my typo. I passed one dict as the validator expects rather than a list of dicts. > > I also tried passing a list of dicts to IS_IN_SET() and get the same > LazyT 'value not allowed' error. >

[web2py] Re: Issue with SQLFORM.factory() and IS_IN_SET()

2011-08-19 Thread TheSweetlink
Upon further investigation I looked at validators.py to make sure I was passing IS_IN_SET() the data it is looking for. A list of tuples should be no problem. I suspect it must be either the '#' or the ':' that's the problem. 1) Am I correct in assuming that it shouldn't matter if everything in

[web2py] Re: Issue with SQLFORM.factory() and IS_IN_SET()

2011-08-18 Thread TheSweetlink
Not sure if my post made it so I apologize if I am reposting. I will not make any more attempts to post the text below: Thanks for the quick reply Richard. The bizarre thing is that I'm not passing anything to T in my code. I am passing as an example: sorted_stuff = [ ('#3:4', 'Monty'), ('#6:1