diff options
author | Zachary Sloan | 2014-02-27 00:01:11 +0000 |
---|---|---|
committer | Zachary Sloan | 2014-02-27 00:01:11 +0000 |
commit | dd6e828ca3b205fefcae833aec53139961f9575f (patch) | |
tree | cedc3363c8003b25a8407502d4e5efaf6ccae48e /wqflask/base | |
parent | b1fd0e00050ef7ba95fd077fb78773265629fb1b (diff) | |
download | genenetwork2-dd6e828ca3b205fefcae833aec53139961f9575f.tar.gz |
Began working on a TraitCollection.py file that will contain both the
object for logged in user collections and collections created by
anonymous users.
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/trait_collection.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/wqflask/base/trait_collection.py b/wqflask/base/trait_collection.py new file mode 100644 index 00000000..797a4d63 --- /dev/null +++ b/wqflask/base/trait_collection.py @@ -0,0 +1,27 @@ +#The TraitCollection class with encompass the UserCollection (collections
+#created by registered and logged in users) and AnonCollection (collections created by users who
+#aren't logged in) class. The former will represent and act on a database table while the latter
+#will store its trait information in Redis
+
+
+from __future__ import print_function, division, absolute_import
+
+import uuid
+import datetime
+
+import simplejson as json
+
+from flask import request
+from flask.ext.sqlalchemy import SQLAlchemy
+
+from wqflask import app
+
+import sqlalchemy
+
+from sqlalchemy import (Column, Integer, String, Table, ForeignKey, Unicode, Boolean, DateTime,
+ Text, Index)
+from sqlalchemy.orm import relationship, backref
+
+from wqflask.database import Base, init_db
+
+class TraitCollection(object):
|