Traceback (most recent call last):
File "/home/james/Development/web2py/gluon/restricted.py", line 217, in restricted
exec ccode in environment
File "/home/james/Development/deemok-web2py/applications/oauth/models/plugin_social_auth.py", line 7, in <module>
Field('user', 'reference auth_user', writable=False, notnull=True))
File "/home/james/Development/web2py/gluon/dal.py", line 8139, in define_table
table = self.lazy_define_table(tablename,*fields,**args)
File "/home/james/Development/web2py/gluon/dal.py", line 8156, in lazy_define_table
table = table_class(self, tablename, *fields, **args)
File "/home/james/Development/web2py/gluon/dal.py", line 8665, in __init__
check_reserved(field_name) File "/home/james/Development/web2py/gluon/dal.py", line 7850, in check_reserved_keyword
'invalid table/column name "%s" is a "%s" reserved SQL/NOSQL keyword' % (name, backend.upper()))
SyntaxError: invalid table/column name "uid" is a "ALL" reserved SQL/NOSQL keyword
Can you possibly rename the field:
Field('uid', 'string', notnull=True, writable=False, length=255),
to:
Field('oauth_uid', 'string', notnull=True, writable=False, length=255),
Or something along those lines?
Traceback (most recent call last):
File "/home/james/Development/web2py/gluon/restricted.py", line 217, in restricted
exec ccode in environment
File "/home/james/Development/web2py/applications/oauth/models/plugin_social_auth.py", line 7, in <module>
Field('user', 'reference auth_user', writable=False, notnull=True))
File "/home/james/Development/web2py/gluon/dal.py", line 8139, in define_table
table = self.lazy_define_table(tablename,*fields,**args)
File "/home/james/Development/web2py/gluon/dal.py", line 8156, in lazy_define_table
table = table_class(self, tablename, *fields, **args)
File "/home/james/Development/web2py/gluon/dal.py", line 8665, in __init__
check_reserved(field_name)
File "/home/james/Development/web2py/gluon/dal.py", line 7850, in check_reserved_keyword
'invalid table/column name "%s" is a "%s" reserved SQL/NOSQL keyword' % (name, backend.upper()))
SyntaxError: invalid table/column name "user" is a "ALL" reserved SQL/NOSQL keyword
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/5JkLj4muEbw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
James,
May I suggest we continue this discussion in the google code repo? You could create an issue with a link to this thread.
Quint