Hello,

I get this error... I have no clue why I get it. I think it not coming from
my app :

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 188, in restricted
    exec ccode in environment
  File "/home/www-data/web2py/applications/init/views/appadmin.html"
<https://127.0.0.1/admin/default/edit/init/views/appadmin.html>, line
192, in <module>
    {{=form}}
  File "/home/www-data/web2py/gluon/sqlhtml.py", line 1273, in __init__
    r = field.represent(r)
  File "/home/www-data/web2py/gluon/sql.py", line 518, in <lambda>
    (ids and ', '.join(f(r,id) for id in ids) or '')
TypeError: sequence item 0: expected string, int found

Error snapshot*Detailed traceback description*

   - Exception: <type 'exceptions.TypeError'>(sequence item 0: expected
   string, int found)
   - Python 2.6.4: /usr/bin/python

File /home/www-data/web2py/gluon/restricted.py in restricted at line 188[
code | arguments | variables ]File
/home/www-data/web2py/applications/init/views/appadmin.html in <module> at
line 192[ code | arguments | variables ]File
/home/www-data/web2py/gluon/sqlhtml.py in __init__ at line 1273[ code |
arguments | variables ]File /home/www-data/web2py/gluon/sql.py in <lambda>
at line 518[ code | arguments | variables ]
*Function argument list: (ids=[9, 4], r=<Table {'first_name':
<gluon.sql.Field object at...itials': <gluon.sql.Field object at
0xbb52a50c>}>, f=<function ff at 0xbb1db02c>)*

513.
514.
515.
516.
517.
518.

519.
520.
521.
522.

    elif field._db and field_type.startswith('list:reference') and \
            field_type.find('.') < 0 and \
            field_type[15:] in field._db.tables:
        referenced = field._db[field_type[15:]]
        field.represent = lambda ids, r=referenced, f=ff: \
            (ids and ', '.join(f(r,id) for id in ids) or '')

        if hasattr(referenced, '_format') and referenced._format:
            requires = validators.IS_IN_DB(field._db,referenced.id,
                                           referenced._format,multiple=True)
            if field.unique:

*
*

*Richard*

*
*

Reply via email to