I get the following error error in DAL using MongoDB with "
list:reference <table>"
<type 'exceptions.OverflowError'> MongoDB can only handle up to 8-byte ints
It seams that web2py isn't converting the selection options into an array of ObjectIDs.
This happens if I select multiple options or just one.
The tables are defined like this:
db.define_table(
'couriers',
Field('id', required=True, unique=True),
Field('name', 'string', length=128, required=True),
Field('description', 'text', length=65536, required=False),
format='%(name)s'
)
db.define_table(
'items',
Field('id', required=True, unique=True),
Field('name', 'string', length=128, required=True),
Field('couriers', 'list:reference couriers', required=False),