Exemple #1
0
class FieldValuesParametizer(PaginatorParametizer):
    aware = BoolParam(False)
    limit = IntParam(10)
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
    processor = StrParam('default', choices=pipeline.query_processors)
    query = StrParam()
    random = IntParam()
Exemple #2
0
class FieldParametizer(Parametizer):
    "Supported params and their defaults for Field endpoints."

    sort = StrParam()
    order = StrParam('asc')
    unpublished = BoolParam(False)
    brief = BoolParam(False)
    query = StrParam()
    limit = IntParam()

    # Not implemented
    offset = IntParam()
    page = IntParam()
Exemple #3
0
class FieldParametizer(Parametizer):
    "Supported params and their defaults for Field endpoints."

    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
    sort = StrParam()
    order = StrParam('asc')
    unpublished = BoolParam(False)
    brief = BoolParam(False)
    query = StrParam()
    limit = IntParam()

    # Not implemented
    offset = IntParam()
    page = IntParam()
Exemple #4
0
class FieldDistParametizer(Parametizer):
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
    aware = BoolParam(False)
    nulls = BoolParam(False)
    sort = StrParam()
    cluster = BoolParam(True)
    n = IntParam()
Exemple #5
0
class FieldDimsParametizer(Parametizer):
    aware = BoolParam(False)
    cluster = BoolParam(True)
    n = IntParam()
    nulls = BoolParam(False)
    processor = StrParam('default', choices=pipeline.query_processors)
    sort = StrParam()
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
Exemple #6
0
class ConceptParametizer(Parametizer):
    "Supported params and their defaults for Concept endpoints."

    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
    sort = StrParam()
    order = StrParam('asc')
    unpublished = BoolParam(False)
    brief = BoolParam(False)
    query = StrParam()
    limit = IntParam()
Exemple #7
0
class ConceptParametizer(Parametizer):
    "Supported params and their defaults for Concept endpoints."

    sort = StrParam()
    order = StrParam('asc')
    unpublished = BoolParam(False)
    embed = BoolParam(False)
    brief = BoolParam(False)
    query = StrParam()
    limit = IntParam()
Exemple #8
0
class PaginatorParametizer(Parametizer):
    page = IntParam(1)
    limit = IntParam(20)
Exemple #9
0
class QueryResultsParametizer(QueryParametizer):
    limit = IntParam(50)
Exemple #10
0
class FieldValuesParametizer(PaginatorParametizer):
    limit = IntParam(10)
    aware = BoolParam(False)
    query = StrParam()
    random = IntParam()
Exemple #11
0
class ExporterParametizer(Parametizer):
    limit = IntParam(50)
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
Exemple #12
0
class ExporterParametizer(Parametizer):
    limit = IntParam(50)
    processor = StrParam('default', choices=pipeline.query_processors)
    reader = StrParam('cached', choices=BaseExporter.readers)
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)