sorry to have bothered for this little problem. I made so many changes as I
do not see the essantiel
Le samedi 5 décembre 2015 06:32:20 UTC+1, Anthony a écrit :
>
> On Friday, December 4, 2015 at 11:47:17 PM UTC-5, Laurent Lc wrote:
>>
>> the field : Field('Abstract', type = 'text' ),
>>
>> Le samedi 5 décembre 2015 05:02:13 UTC+1, Laurent Lc a écrit :
>>>
>>> Traceback (most recent call last):
>>> File "C:\Users\chambon\Documents\web2py\gluon\restricted.py", line 227,
>>> in restricted
>>> exec ccode in environment
>>> File "C:/Users/chambon/Documents/web2py/applications/NEURO/models/db.py"
>>> <http://localhost:8080/admin/default/edit/NEURO/models/db.py>, line 92, in
>>> <module>
>>> custom_auth_table.abstract.requires=COUNT_TEXT()
>>> File
>>> "C:\Users\chambon\Documents\web2py\gluon\packages\dal\pydal\helpers\classes.py",
>>> line 348, in __getattr__
>>> raise AttributeError
>>> AttributeError
>>>
>>>
> The problem is not with the validator or even the "requires" attribute. In
> your code, you refer to the field as "abstract", though in your table
> definition, it is "Abstract".
>
> A couple of hints. First, when you get an AttributeError in a particular
> line of code, the problem is that one of the identifiers after a "." does
> not exist on the object (in this case, that would mean either .abstract or
> .requires are not proper attributes of their respective objects). If your
> validator initialization code threw an AttributeError, the identified line
> would be in that code, not the line shown above.
>
> Second, it always helps to go to the identified line that caused the
> error. In this case, you would ultimately trace it back to the Table class,
> which means the offending attribute must be .abstract.
>
> Anthony
>
--
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.