481.
482.
483.
484.
485.
486.

487.
488.
489.
490.

Here is the code listing

            self.execute(query)
        except:
            e = sys.exc_info()[1]
            if hasattr(table, '_on_insert_error'):
                return table._on_insert_error(table, fields, e)
            raise e

        if hasattr(table, '_primarykey'):
            pkdict = dict([
                (k[0].name, k[1]) for k in fields
                if k[0].name in table._primarykey])


On Sunday, October 1, 2017 at 7:05:15 PM UTC-4, LoveWeb2py wrote:
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
>
> Traceback (most recent call last):
>   File "/Users/me/web2py/gluon/restricted.py", line 219, in restricted
>     exec(ccode, environment)
>   File 
> "/Users/me/web-dev/web2py/applications/myapp/controllers/filegroups.py" 
> <http://localhost:8000/admin/default/edit/cerebro/controllers/reports.py>, 
> line 88, in <module>
>   File "/Users/me/web2py/gluon/globals.py", line 414, in <lambda>
>     self._caller = lambda f: f()
>   File "/Users/me/web2py/applications/myapp/controllers/filegroups.py" 
> <http://localhost:8000/admin/default/edit/cerebro/controllers/reports.py>, 
> line 80, in test_1
>     db.file_groups.insert(group_name=test_id, filename=file_ids)
>   File "/usr/local/lib/python2.7/site-packages/pydal/objects.py", line 734, 
> in insert
>     ret = self._db._adapter.insert(self, row.op_values())
>   File "/usr/local/lib/python2.7/site-packages/pydal/adapters/base.py", line 
> 486, in insert
>     raise e
> IntegrityError: FOREIGN KEY constraint failed
>
>
>
> On Sunday, October 1, 2017 at 6:40:11 PM UTC-4, Anthony wrote:
>>
>> Please show the full traceback.
>
>

-- 
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/d/optout.

Reply via email to