Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/errors/127.0.0.1.2010-07-06.21-18-53.0f21c2ca-659d-4f8c-9f39-bda12e55bad0
blob: 11a8c5c1161902685b24a012d6d434b1725cef83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(dp1
S'output'
p2
S''
sS'layer'
p3
S'/home/jboisture/Desktop/google_appengine/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),\n    Field(\'email\', length=128, unique=True),\n    Field(\'password\', \'password\', length=256,\n          readable=False, label=\'Password\'),\n    Field(\'registration_key\', length=128,\n          writable=False, readable=False))\n\n\nauth_table.user_name.requires = \\\n  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")])\nauth_table.password.requires = [IS_STRONG(), CRYPT()]\nauth_table.email.requires = [\n  IS_EMAIL(error_message=auth.messages.invalid_email),\n  IS_NOT_IN_DB(db, auth_table.email)]\nauth.settings.table_user = auth_table\n\n# before\n'
p6
sS'traceback'
p7
S'Traceback (most recent call last):\n  File "/home/jboisture/Desktop/google_appengine/web2py/gluon/restricted.py", line 176, in restricted\n    ccode = compile2(code,layer)\n  File "/home/jboisture/Desktop/google_appengine/web2py/gluon/restricted.py", line 163, in compile2\n    return compile(code.rstrip().replace(\'\\r\\n\',\'\\n\')+\'\\n\', layer, \'exec\')\n  File "/home/jboisture/Desktop/google_appengine/web2py/applications/turtlesite/models/db.py", line 25\n    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                                                                                                                                           ^\nSyntaxError: invalid syntax\n'
p8
s.