anthony copy Mandar's Code exactly and then jus go and add a few parents 
then try to add a child with two parents, you will encounter this error..
Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.

Traceback (most recent call last):
  File "C:\Users\User\Desktop\web2py\gluon\restricted.py", line 220, in 
restricted
    exec ccode in environment
  File "C:/Users/User/Desktop/web2py/applications/Test/views/appadmin.html" 
<http://127.0.0.1:8000/admin/default/edit/Test/views/appadmin.html>, line 189, 
in <module>
    </p>
  File "C:\Users\User\Desktop\web2py\gluon\sqlhtml.py", line 3049, in __init__
    r = represent(field, r or [], record)
  File "C:\Users\User\Desktop\web2py\gluon\sqlhtml.py", line 59, in represent
    return f(value)
  File "C:\Users\User\Desktop\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

Error snapshot [image: 
help]<http://127.0.0.1:8000/admin/default/ticket/Test/127.0.0.1.2014-05-13.12-50-50.770d8b11-11d1-4452-a200-ff60c3ae7a65#>

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

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to