[web2py] Re: dal trying to insert 0 instead of null?

2011-07-13 Thread Lenkaster
Hi cjwebb Your suspect is correct and I had a similar barrier. Pay attention this part of log: >   File "c:\web2py\gluon\sqlhtml.py", line 1205, in accepts >     self.vars.id = self.table.insert(**fields) Before the line 1205 "accepts" method tries to set up "recipe_id" with "fields[fieldname]=".

[web2py] Re: Integrity error with IS_NOT_IN_DB [Solved]

2011-07-07 Thread Lenkaster
constraint of multiple fields. [2] http://www.web2py.com/book/default/chapter/07#Database-Validators Until to the next challenge! ;-) Greetings. Lenkaster On 26 maio, 16:27, Lenkaster wrote: > Hi, > > I have some problems to validate in the form layer when a table has > uniqueness c

[web2py] Integrity error with IS_NOT_IN_DB

2011-05-26 Thread Lenkaster
_thread/thread/e5ddcfc6ca019568/a143eb919c92735b?lnk=gst&q=unique+multiple+columns#a143eb919c92735b Obs: In this case it is important to keep uniqueness constraint in database layer. So I would like see your sugestions and opinions about that, and where is my mistake? Greetings Lenkaster