Ticket in Appadmin when viewing a table

28 views
Skip to first unread message

Omri Levy

unread,
Jun 16, 2014, 10:17:01 AM6/16/14
to web...@googlegroups.com, Omri Levy


<type 'exceptions.TypeError'> sequence item 0: expected string, long found

Version

web2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39
PythonPython 2.7.6: C:\Python27\python.exe (prefix: C:\Python27)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Traceback (most recent call last):
File "G:\Dropbox\Coding Projects\web2py\gluon\restricted.py", line 220, in restricted
exec ccode in environment
File "G:/Dropbox/Coding Projects/web2py/applications/goals/views/appadmin.html", line 183, in <module>
<
h4>{{=T("DISK")}}</h4>
File "G:\Dropbox\Coding Projects\web2py\gluon\sqlhtml.py", line 3049, in __init__
r = represent(field, r or [], record)
File "G:\Dropbox\Coding Projects\web2py\gluon\sqlhtml.py", line 59, in represent
return f(value)
File "G:\Dropbox\Coding Projects\web2py\gluon\dal.py", line 7252, in list_ref_repr
return (refs and ', '.join(f(r,x.id) for x in refs) or '')
TypeError: sequence item 0: expected string, long found

Massimo Di Pierro

unread,
Jun 19, 2014, 6:17:08 PM6/19/14
to web...@googlegroups.com, my.ma...@gmail.com
think it is a bug. pushing a new version that should fix that. Check trunk in 5 minutes.

Omri Levy

unread,
Jun 19, 2014, 6:28:41 PM6/19/14
to web...@googlegroups.com, my.ma...@gmail.com
Hi Massimo,

Thanks , I experience this bug a lot, I think it's when I update list of references to the same table in the db.
Can you please explain how to update? (do I need Git?) / Manually fix it?

Thanks again ,

Omri.

Massimo Di Pierro

unread,
Jun 19, 2014, 11:04:34 PM6/19/14
to web...@googlegroups.com, my.ma...@gmail.com
Download this:


Unzip it and copy web2py over the old one.

Omri Levy

unread,
Jun 20, 2014, 2:32:16 PM6/20/14
to web...@googlegroups.com, my.ma...@gmail.com
Hi Massimo ,

Thank you very much!
Error still happens. I think it's corrupt data in DB, because when removing the DB and repeating the same actions it's OK.

Thanks , 
Reply all
Reply to author
Forward
0 new messages