Changeset 101:fc5e627d5325
- Timestamp:
- 12/12/08 04:52:50 (20 months ago)
- Author:
- Nicolas ?vrard <nicoe@…>
- Branch:
- default
- Message:
-
Add to factory information about what classes we are working on
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r79
|
r101
|
|
| 108 | 108 | It just returns a copy of the data it receives""" |
| 109 | 109 | |
| | 110 | def __init__(self, klass): |
| | 111 | self.working_on = klass |
| | 112 | |
| 110 | 113 | def __call__(self, **kwargs): |
| 111 | 114 | data = kwargs.copy() |
| … |
… |
|
| 146 | 149 | data_factory = self.default_factory |
| 147 | 150 | reports = self.classes.setdefault(klass, ReportDict()) |
| 148 | | report = Report(_absolute(template_path), mimetype, data_factory(), |
| | 151 | report = Report(_absolute(template_path), mimetype, data_factory(klass), |
| 149 | 152 | self.loader) |
| 150 | 153 | reports.ids[report_name] = report, mimetype |