Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/models/db.py.bak
diff options
context:
space:
mode:
authorJames 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)
commitb817158f554f7b3342ecfe3ce24d04e91abed3c3 (patch)
tree632bc4515e4feb5440714acb3b893aaa9b22a91d /models/db.py.bak
The initial commit of the turtleartsite
Diffstat (limited to 'models/db.py.bak')
-rw-r--r--models/db.py.bak9
1 files changed, 9 insertions, 0 deletions
diff --git a/models/db.py.bak b/models/db.py.bak
new file mode 100644
index 0000000..17bc391
--- /dev/null
+++ b/models/db.py.bak
@@ -0,0 +1,9 @@
+db = DAL("sqlite://storage.db")
+
+db.define_table('comment',
+ 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")]),
+ 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")]),
+ Field('image_id'),
+ Field('creator', requires=IS_NOT_EMPTY(error_message="You must include your name")),
+ Field('description', 'text'),
+ Field('newimage'))