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