cybertools/composer/report
2012-07-10 09:04:11 +02:00
..
__init__.py create report sub-package for generic report configuration 2010-03-20 12:26:10 +00:00
base.py merge branch master 2012-07-10 09:04:11 +02:00
configure.zcml create report sub-package for generic report configuration 2010-03-20 12:26:10 +00:00
field.py make sure query criteria is a number for a 'number' field 2012-07-09 16:30:36 +02:00
instance.py create report sub-package for generic report configuration 2010-03-20 12:26:10 +00:00
interfaces.py add attribute 'userSetting' for specifying column specifications that may be edited by the user; extend interface definition to resemble currently used attributes 2012-07-09 10:23:03 +02:00
README.txt work in progress: generic report configuration: basic field definitions 2010-03-21 16:11:55 +00:00
result.py provide separate float field instance; predefine cssClass in row base class 2012-07-07 10:05:00 +02:00
tests.py create report sub-package for generic report configuration 2010-03-20 12:26:10 +00:00

=================
Report Management
=================

  ($Id$)

  >>> from zope import component
  >>> from cybertools.composer.report.base import ReportManager, Report

  >>> manager = ReportManager()

  >>> rep01 = manager.addReport(Report('testreport'))

The base report provides a fairly basic collection of field definitions:

  >>> len(rep01.fields)
  1
  >>> rep01.fields.keys()
  ['label']
  >>> rep01.fields.get('label')
  <cybertools.composer.report.field.Field object ...>
  >>> rep01.fields.get('title')