From b817158f554f7b3342ecfe3ce24d04e91abed3c3 Mon Sep 17 00:00:00 2001 From: James Boisture Date: Tue, 20 Jul 2010 03:15:23 +0000 Subject: The initial commit of the turtleartsite --- (limited to 'errors/127.0.0.1.2010-07-06.21-35-17.143e16c3-1b07-4019-a4e4-9de63bca17dd') diff --git a/errors/127.0.0.1.2010-07-06.21-35-17.143e16c3-1b07-4019-a4e4-9de63bca17dd b/errors/127.0.0.1.2010-07-06.21-35-17.143e16c3-1b07-4019-a4e4-9de63bca17dd new file mode 100644 index 0000000..971997d --- /dev/null +++ b/errors/127.0.0.1.2010-07-06.21-35-17.143e16c3-1b07-4019-a4e4-9de63bca17dd @@ -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")]))\nfrom gluon.tools import Auth\nauth = Auth(globals(),db)\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, 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 21, in \n Field(\'registration_key\', length=128, writable=False, readable=False))\n File "/home/jboisture/Desktop/web2py/gluon/sql.py", line 1309, in define_table\n t._create(migrate=migrate, fake_migrate=fake_migrate)\n File "/home/jboisture/Desktop/web2py/gluon/sql.py", line 1730, in _create\n self._db._execute(query)\n File "/home/jboisture/Desktop/web2py/gluon/sql.py", line 899, in \n self._execute = lambda *a, **b: self._cursor.execute(*a, **b)\nOperationalError: table auth_user already exists\n' +p8 +s. \ No newline at end of file -- cgit v0.9.1