示例#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()
示例#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()
示例#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()
示例#4
0
文件: dist.py 项目: rysdyk/serrano
class FieldDistParametizer(Parametizer):
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
    aware = BoolParam(False)
    nulls = BoolParam(False)
    sort = StrParam()
    cluster = BoolParam(True)
    n = IntParam()
示例#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)
示例#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()
示例#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()
示例#8
0
class PaginatorParametizer(Parametizer):
    page = IntParam(1)
    limit = IntParam(20)
示例#9
0
class QueryResultsParametizer(QueryParametizer):
    limit = IntParam(50)
示例#10
0
文件: values.py 项目: rysdyk/serrano
class FieldValuesParametizer(PaginatorParametizer):
    limit = IntParam(10)
    aware = BoolParam(False)
    query = StrParam()
    random = IntParam()
示例#11
0
class ExporterParametizer(Parametizer):
    limit = IntParam(50)
    tree = StrParam(MODELTREE_DEFAULT_ALIAS, choices=trees)
示例#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)