Mind that you have written 
db.define.table
instead of

db.define_table


Paolo

On Friday, June 5, 2015 at 6:26:00 AM UTC+2, Dan Hett wrote:
>
> I am getting an error for this table creation:
>
> db.define.table('blade_location',
>                 Field('bladeID','reference blade'),
>                 Field('locationID','integer'),
>                 Field('widgetID','integer'),
>                 Field('moduleType'))
>
> Getting this error:
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
>
> Traceback (most recent call last):
>   File "C:\web2py\gluon\restricted.py", line 227, in restricted
>     exec ccode in environment
>   File "C:/web2py/applications/dan/models/db.py" 
> <http://127.0.0.1:8000/admin/default/edit/dan/models/db.py>, line 75, in 
> <module>
>     db.define.table('blade_location',
>   File "C:\web2py\gluon\packages\dal\pydal\base.py", line 906, in __getattr__
>     return super(DAL, self).__getattr__(key)
>   File "C:\web2py\gluon\packages\dal\pydal\helpers\classes.py", line 348, in 
> __getattr__
>     raise AttributeError
> Attr
>
>
> Table before this one looks like this:
> db.define_table('blade',
>                 auth.signature,
>                 Field('topicID','integer','default=0'),
>                 Field('layoutType'),
>                 Field('name'),
>                 Field('description'),
>                 Field('rateUp','boolean'),
>                 Field('rateOK','boolean'),
>                 Field('rateDown','boolean'),
>                 Field('views','integer'),
>                 Field('weight','integer'),
>                 Field('privateLevel','integer'))
>
> Any ideas?
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to