Hi.
Problem is in line:
db.Field("password", ‘password’,readable=False, label="Password"),
It's the ‘ which isn't a real apostrophe. ' this is. It looks like it, but
when I copy/pasted your code, syntax highlighting didn't mark it as a string.
Try replacing it.
regards
mmlado
On Wednesday 29 July 2009 14:42:47 Johann Spies wrote:
> 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
-~----------~----~----~----~------~----~------~--~---