2332
|
1 |
#Copyright ReportLab Europe Ltd. 2000-2004
|
494
|
2 |
#see license.txt for license details
|
2332
|
3 |
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/__init__.py
|
|
4 |
__version__=''' $Id$ '''
|
681
|
5 |
__doc__="""The Reportlab PDF generation library."""
|
2407
|
6 |
Version = "1.20"
|
681
|
7 |
|
|
8 |
def getStory(context):
|
|
9 |
if context.target == 'UserGuide':
|
|
10 |
# parse some local file
|
|
11 |
import os
|
|
12 |
myDir = os.path.split(__file__)[0]
|
|
13 |
import yaml
|
|
14 |
return yaml.parseFile(myDir + os.sep + 'mydocs.yaml')
|
|
15 |
else:
|
|
16 |
# this signals that it should revert to default processing
|
|
17 |
return None
|
2216
|
18 |
|
|
19 |
|
|
20 |
def getMonitor():
|
|
21 |
import reportlab.monitor
|
|
22 |
mon = reportlab.monitor.ReportLabToolkitMonitor()
|
2407
|
23 |
return mon
|