Exemplo n.º 1
0
class Analysis(db.Document):
    owner = db.ReferenceField(User)
    created = db.DateTimeField(default=datetime.datetime.now)
    lastrun = db.DateTimeField(default=datetime.datetime.now)
    files = db.ListField(db.ReferenceField(File))
    refcorpus = db.ListField(db.ReferenceField(RefCorpus))
    name = db.StringField()
    status = db.StringField()
    laststate = db.StringField()
Exemplo n.º 2
0
class File(db.Document):
    owner = db.ReferenceField(User)
    filename = db.StringField(unique=False)
    created = db.DateTimeField(default=datetime.datetime.now)
    status = db.StringField()
    file_type = db.StringField()
    columns = db.ListField()
    rows = db.IntField()
    filesize = db.IntField()
Exemplo n.º 3
0
class Analysis(db.Document):
    owner = db.ReferenceField(User)
    created = db.DateTimeField(default=datetime.datetime.now)
    lastrun = db.DateTimeField(default=datetime.datetime.now)
    files = db.DictField()
    name = db.StringField()
    status = db.StringField()
    laststate = db.StringField()
    type = db.StringField()

    shared = db.ListField(db.ReferenceField(User))
    to_share = db.ListField(db.StringField())
Exemplo n.º 4
0
class Question(db.EmbeddedDocument):
    qNum = db.IntField()
    qTitle = db.StringField()
    qText = db.StringField()
    numResponses = db.IntField()
    referenceAnswers = db.ListField(db.StringField())
    categories = db.ListField(db.StringField())
    blist = db.ListField(db.StringField())
    wlist = db.ListField(db.StringField())
    qSettings = db.DictField()
Exemplo n.º 5
0
class User(db.Document, UserMixin):
    social_id = db.StringField()
    nickname = db.StringField()
    email = db.StringField()
    theme = db.StringField(default="original")
    plan = db.StringField(default="free")
    isAdmin = db.StringField(default="false")

    def save(self, *args, **kwargs):
        if not self.theme:
            self.theme = "original"
        return super(User, self).save(*args, **kwargs)
Exemplo n.º 6
0
class URL(db.Document):
    key = db.StringField()
    analysis_id = db.StringField()
    file_id = db.StringField()
    question_number = db.StringField()
Exemplo n.º 7
0
class User(db.Document, UserMixin):
    username = db.StringField()
    password = db.StringField()
    email = db.StringField()
    confirmed = db.StringField()

    first_name = db.StringField()
    last_name = db.StringField()

    google_id = db.StringField()
    twitter_id = db.StringField()
    canvas_id = db.StringField()
    display_name = db.StringField()

    theme = db.StringField(default="original")
    plan = db.StringField(default="free")
    beta = db.StringField(default="False")
    institution = db.StringField()

    isAdmin = db.StringField(default="false")
    config = db.DictField()
Exemplo n.º 8
0
class RefCorpus(db.Document):
    owner = db.ReferenceField(User)
    filename = db.StringField(unique=False)
    created = db.DateTimeField(default=datetime.datetime.now)
    status = db.StringField()
Exemplo n.º 9
0
class File(db.Document):
    owner = db.ReferenceField(User)
    filename = db.StringField(unique=False)
    questions = db.ListField(db.EmbeddedDocumentField(Question))
    created = db.DateTimeField(default=datetime.datetime.now)
    status = db.StringField()