While working through the tutorial I am trying get the following error
message and I cannot see what the problem is:
Error traceback
Traceback (most recent call last):
File "/usr/local/web2py/gluon/restricted.py", line 174, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
File "/usr/local/web2py/applications/linux_span/models/db.py", line 40
db.Field("password", ‘password’,readable=False, label="Password"),
^
SyntaxError: invalid syntax
This is the definition in db.py (mostly copied from the tutorial).
auth.settings.table_user =
db.define_table("auth_user",db.Field("first_name",length=128,default=""),
db.Field("last_name", length=128,default=""),
db.Field("email", length=128,default=""),
db.Field("username", length=32,default=""),
db.Field("password",
‘password’,readable=False, label="Password"),
db.Field("registration_key", length=128,
writable=False, readable=False, default=""))
What is wrong?
Regards
Johann
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---