move report parameters to separate interface
This commit is contained in:
parent
eb1bd2f169
commit
cce0993684
1 changed files with 14 additions and 8 deletions
|
@ -53,7 +53,20 @@ class IReportManager(Interface):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class IReport(ITemplate):
|
class IReportParams(Interface):
|
||||||
|
""" Contains the real reporting parameters like query and sort criteria,
|
||||||
|
column definitions, etc.
|
||||||
|
"""
|
||||||
|
|
||||||
|
queryCriteria = Attribute('The criteria to be used for executing the '
|
||||||
|
'query step.')
|
||||||
|
sortSpec = Attribute('A sequence of fields/sort directions to be used for '
|
||||||
|
'executing the sorting step.')
|
||||||
|
outputSpec = Attribute('A sequence of output fields (column/cell '
|
||||||
|
'specifications) to be used for presenting the result data.')
|
||||||
|
|
||||||
|
|
||||||
|
class IReport(ITemplate, IReportParams):
|
||||||
""" A configurable report.
|
""" A configurable report.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -90,13 +103,6 @@ class IReport(ITemplate):
|
||||||
renderers = Attribute('An ordered collection of renderers available '
|
renderers = Attribute('An ordered collection of renderers available '
|
||||||
'for this report type.')
|
'for this report type.')
|
||||||
|
|
||||||
queryCriteria = Attribute('The criteria to be used for executing the '
|
|
||||||
'query step.')
|
|
||||||
sortSpec = Attribute('A sequence of fields/sort directions to be used for '
|
|
||||||
'executing the sorting step.')
|
|
||||||
outputSpec = Attribute('A sequence of output fields (column/cell '
|
|
||||||
'specifications) to be used for presenting the result data.')
|
|
||||||
|
|
||||||
def getQueryFields():
|
def getQueryFields():
|
||||||
""" Return a sequence of fields that may be used for setting up
|
""" Return a sequence of fields that may be used for setting up
|
||||||
the query criteria.
|
the query criteria.
|
||||||
|
|
Loading…
Add table
Reference in a new issue