diff options
author | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-20 03:15:23 (GMT) |
---|---|---|
committer | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-20 03:15:23 (GMT) |
commit | b817158f554f7b3342ecfe3ce24d04e91abed3c3 (patch) | |
tree | 632bc4515e4feb5440714acb3b893aaa9b22a91d /errors/127.0.0.1.2010-07-06.21-29-15.280641a8-e44d-4076-b209-755fc4295910 |
The initial commit of the turtleartsite
Diffstat (limited to 'errors/127.0.0.1.2010-07-06.21-29-15.280641a8-e44d-4076-b209-755fc4295910')
-rw-r--r-- | errors/127.0.0.1.2010-07-06.21-29-15.280641a8-e44d-4076-b209-755fc4295910 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/errors/127.0.0.1.2010-07-06.21-29-15.280641a8-e44d-4076-b209-755fc4295910 b/errors/127.0.0.1.2010-07-06.21-29-15.280641a8-e44d-4076-b209-755fc4295910 new file mode 100644 index 0000000..5abee74 --- /dev/null +++ b/errors/127.0.0.1.2010-07-06.21-29-15.280641a8-e44d-4076-b209-755fc4295910 @@ -0,0 +1,17 @@ +(dp1 +S'output' +p2 +S'' +sS'layer' +p3 +S'/home/jboisture/Desktop/web2py/applications/turtlesite/models/db.py' +p4 +sS'code' +p5 +S'if request.env.web2py_runtime_gae:\n db = DAL(\'gae\')\n session.connect(request,response,db=db)\nelse:db = DAL("sqlite://storage.db")\n\ndb.define_table(\'comment\',\n Field(\'file\', \'upload\', requires=[IS_NOT_EMPTY(error_message="Please select a file to upload"), IS_UPLOAD_FILENAME(extension=\'ta\', error_message="Must be a Turtle Art file")]),\n Field(\'title\', requires=[IS_NOT_EMPTY(error_message="You must include a title"), IS_NOT_IN_DB(db, \'comment.title\', error_message="Title is already taken")]),\n Field(\'image_id\'),\n Field(\'creator\', requires=IS_NOT_EMPTY(error_message="You must include your name")),\n Field(\'description\', \'text\'),\n Field(\'newimage\', \'upload\', requires=[IS_NOT_EMPTY(error_message="Please select a image to upload"), IS_UPLOAD_FILENAME(extension=\'png\', error_message="Must be a PNG image")]))\n\nauth_table = db.define_table(\n auth.settings.table_user_name,\n Field(\'user_name\', length=128, requires = [IS_NOT_EMPTY(error_message=auth.messages.is_empty), IS_NOT_IN_DB(db, \'auth_table.user_name\', error_message="User name is already taken")]),\n Field(\'email\', length=128, unique=True, requires = [IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, auth_table.email)]),\n Field(\'password\', \'password\', length=256,\n readable=False, label=\'Password\', requires = [IS_STRONG(), CRYPT()]),\n Field(\'registration_key\', length=128,\n writable=False, readable=False))\n\nauth.settings.table_user = auth_table\n' +p6 +sS'traceback' +p7 +S'Traceback (most recent call last):\n File "/home/jboisture/Desktop/web2py/gluon/restricted.py", line 178, in restricted\n exec ccode in environment\n File "/home/jboisture/Desktop/web2py/applications/turtlesite/models/db.py", line 15, in <module>\n auth.settings.table_user_name,\nNameError: name \'auth\' is not defined\n' +p8 +s.
\ No newline at end of file |