error in DAL using MongoDB with "list:reference <table>"

38 views
Skip to first unread message

Francisco Costa

unread,
Dec 5, 2013, 1:13:15 PM12/5/13
to web2py-d...@googlegroups.com
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),
)

Alan Etkin

unread,
Dec 6, 2013, 2:05:45 PM12/6/13
to web2py-d...@googlegroups.com
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


Please file an issue in Google Code. Also post the steps for reproducing the error.

Francisco Costa

unread,
Dec 6, 2013, 4:54:22 PM12/6/13
to web2py-d...@googlegroups.com

Francisco Costa


--
-- mail from:GoogleGroups "web2py-developers" mailing list
make speech: web2py-d...@googlegroups.com
unsubscribe: web2py-develop...@googlegroups.com
details : http://groups.google.com/group/web2py-developers
the project: http://code.google.com/p/web2py/
official : http://www.web2py.com/
---
You received this message because you are subscribed to the Google Groups "web2py-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py-develop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages