Replace that with SQLFORM
2010/8/18 flow <[email protected]>
> Newbie working through the online manual. Trying to use Autocomplete
> as described in Forms and Validators.
> Receiving Error as described in subject line. web2py Version 1.83.2
> (2010-08-15 08:16:30)
> Thank You.
>
> Error traceback
> 1.2.3.4.5. Traceback (most recent call last): File "gluon/
> restricted.py", line 186, in restricted File "C:/web2py/applications/
> AnthianOne/models/db.py", line 118, in <module>NameError: name
> 'SQLHTML' is not defined
>
> Error snapshot
> Detailed traceback description
> Exception: <type 'exceptions.NameError'>(name 'SQLHTML' is not
> defined)
> Exception instance attributes
> __setattr__: <method-wrapper '__setattr__' of exceptions.NameError
> object at 0x016EF1C0>
> __reduce_ex__: <built-in method __reduce_ex__ of exceptions.NameError
> object at 0x016EF1C0>
> __getslice__: <method-wrapper '__getslice__' of exceptions.NameError
> object at 0x016EF1C0>
> __getitem__: <method-wrapper '__getitem__' of exceptions.NameError
> object at 0x016EF1C0>
> __setstate__: <built-in method __setstate__ of exceptions.NameError
> object at 0x016EF1C0>
> __getattribute__: <method-wrapper '__getattribute__' of
> exceptions.NameError object at 0x016EF1C0>
> __str__: <method-wrapper '__str__' of exceptions.NameError object at
> 0x016EF1C0>
> args: ("name 'SQLHTML' is not defined",)
> __reduce__: <built-in method __reduce__ of exceptions.NameError object
> at 0x016EF1C0>
> __class__: <type 'exceptions.NameError'>
> __dict__: {}
> __delattr__: <method-wrapper '__delattr__' of exceptions.NameError
> object at 0x016EF1C0>
> __repr__: <method-wrapper '__repr__' of exceptions.NameError object at
> 0x016EF1C0>
> __hash__: <method-wrapper '__hash__' of exceptions.NameError object at
> 0x016EF1C0>
> __doc__: 'Name not found globally.'
> __init__: <method-wrapper '__init__' of exceptions.NameError object at
> 0x016EF1C0>
> __new__: <built-in method __new__ of type object at 0x1E1CD8D8>
> Python 2.5.4: C:\web2py\web2py.exe
> File C:\web2py\gluon\restricted.py in restricted at line 186
> [ code | arguments | variables ]
> Function argument list: (code="# -*- coding: utf-8 -*- \n
> \n######################...IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'Customer.Name')]
> \n", environment={'A': <class 'gluon.html.A'>, 'Auth': <class
> 'gluon.tools.Auth'>, 'B': <class 'gluon.html.B'>, 'BEAUTIFY': <class
> 'gluon.html.BEAUTIFY'>, 'BODY': <class 'gluon.html.BODY'>, 'BR':
> <class 'gluon.html.BR'>, 'CENTER': <class 'gluon.html.CENTER'>,
> 'CLEANUP': <class 'gluon.validators.CLEANUP'>, 'CODE': <class
> 'gluon.html.CODE'>, 'CRYPT': <class 'gluon.validators.CRYPT'>, ...},
> layer=r'C:\web2py\applications\AnthianOne/models/db.py')
>
>
>
--
http://rochacbruno.com.br