Exemple #1
0
class Bibliography(schema.Object):
    properties = {
        "eid": schema.String(max_length=40),
        "created": schema.String(max_length=50),
        "modified": schema.String(max_length=50),
        "description": schema.String(max_length=float('inf')),
    }
Exemple #2
0
class ToDoNote(schema.Object):
    properties = {
        'id': schema.Integer(minimum=0),
        'text': schema.String(max_length=100),
        'complete': schema.Boolean,
        'percent_complete': schema.Number
    }
Exemple #3
0
class MatrixDescriptor(schema.Object):
    """
    Describes the options to create a term document matrix.
    """
    properties = {
        'bibliography': schema.String(max_length=40),
        'regularise': schema.Boolean(default=True),
        'fields': MatrixFields
    }
Exemple #4
0
class Env(environment.Environment):
    """
    Environment variables wrapper
    """
    properties = {
        'DEBUG': schema.Boolean(default=False),
        'DATABASE_URL': schema.String(default='sqlite:///timetable.db'),
        'ATTEMPTS': schema.Integer(default=1)
    }
Exemple #5
0
class Document(schema.Object):
    properties = {
        'eid': schema.String(max_length=40),
        'created': schema.String(max_length=50),
        'modified': schema.String(max_length=50),
        'bibliography_eid': schema.String(max_length=40),
        'title': schema.String(max_length=512),
        'description': schema.String(max_length=float('inf')),
        'keywords': schema.String(max_length=512),
        'language': schema.String(max_length=16)
    }
Exemple #6
0
class HighScore(schema.Object):
    properties = {
        'name': schema.String(max_length=100),
        'score': schema.Integer(minimum=0, maximum=100),
        'completed': schema.Boolean(default=False),
        'difficulty': schema.Enum(enum=['easy', 'medium', 'hard']),
        'location': Location(default={
            'latitude': 0.0,
            'longitude': 0.0
        })
    }
Exemple #7
0
class Matrix(schema.Object):
    properties = {
        "eid": schema.String(max_length=40),
        'created': schema.String(max_length=50),
        'modified': schema.String(max_length=50),
        "bibliography_eid": schema.String(max_length=40),
        "bibliography_options": schema.String(max_length=512),
        "processing_options": schema.String(max_length=512),
    }
Exemple #8
0
class Ranking(schema.Object):
    properties = {
        "eid": schema.String(max_length=40),
        'created': schema.String(max_length=50),
        'modified': schema.String(max_length=50),
        "term_document_matrix_eid": schema.String(max_length=40),
        "kind": schema.String(max_length=16),
        "build_options": schema.String(max_length=512),
    }
Exemple #9
0
class Env(environment.Environment):
    properties = {
        'DEBUG': schema.Boolean(default=False),
        'DATABASE_URL': schema.String(default='sqlite:///test.db'),
    }
Exemple #10
0
class CarSchema(schema.Object):
    properties = {
        'make': schema.String(max_length=100),
        'model': schema.String(max_length=50),
        'owner': PersonSchema
    }
Exemple #11
0
class PersonSchema(schema.Object):
    properties = {'name': schema.String(max_length=100), 'age': schema.Integer}
Exemple #12
0
class Star(schema.Object):

    properties = {'name': schema.String(max_length=255)}