[web2py] Re: SQLite Integrity error after update to 2.8.2. = Widget problem?

2013-12-10 Thread Loïc
I'm still trying to understand this issue, as it is related to my custom widget (does not occurs when I use the default reference list widget) I try to set some breakpoints for example in accepts method of FORM class but I can't make it work. If I add dbg.set_trace(),the program breaks several

[web2py] Re: SQLite Integrity error after update to 2.8.2. = Widget problem?

2013-12-10 Thread Loïc
Finally, I managed to make it work The solution was to* pass the validator of the table field to the SELECT helper of the widget* : In HierarchicalSelect class, I replaced opt=[OPTION(name, _value=key) for key,name in self.options] sel = SELECT(opt,_id=%s_%s % (self.tablename,

[web2py] Re: SQLite Integrity error after update to 2.8.2. = Widget problem?

2013-12-05 Thread Massimo Di Pierro
The problem is discussed here: https://groups.google.com/forum/#!topic/web2py/klspqXpha4E On Thursday, 5 December 2013 05:04:17 UTC-6, Loïc wrote: Hello all- I have the same problem as the one explained here :https://groups.google.com/forum/?fromgroups#!topic/web2py/klspqXpha4E But as I

[web2py] Re: SQLite Integrity error after update to 2.8.2. = Widget problem?

2013-12-05 Thread Loïc
I know Massimo, but my problem seems to be located in the Widget management And that's why I started my message with *I have the same problem as the one explained here : https://groups.google.com/forum/?fromgroups#!topic/web2py/klspqXpha4E

[web2py] Re: SQLite Integrity error after update to 2.8.2. = Widget problem?

2013-12-05 Thread Massimo Di Pierro
I understand and I do not understand why the problem arises there but your error is: class 'sqlite3.IntegrityError' foreign key constraint failed So I would exclude it is a problem with the foreign key contraints. On Thursday, 5 December 2013 09:46:59 UTC-6, Loïc wrote: I know Massimo, but