diff options
| author | pinky <> | 2007-01-07 21:41:39 +0000 |
|---|---|---|
| committer | pinky <> | 2007-01-07 21:41:39 +0000 |
| commit | 05bb5d58295cd959c34f1fbcd5b605cd6dafaacc (patch) | |
| tree | 3b3651037037c1617a54ef3d216e8c11ea8cdddf /bin/reportlab/__init__.py | |
| parent | 62524af2f41454a2302efb21f15a95318d257a76 (diff) | |
Repotrlab 2.0
bzr revid: pinky-b8333ccaab5dad8ff965b6c380fadadf30d5212a
Diffstat (limited to 'bin/reportlab/__init__.py')
| -rw-r--r-- | bin/reportlab/__init__.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bin/reportlab/__init__.py b/bin/reportlab/__init__.py new file mode 100644 index 00000000000..5a381ed9b26 --- /dev/null +++ b/bin/reportlab/__init__.py @@ -0,0 +1,33 @@ +#Copyright ReportLab Europe Ltd. 2000-2004 +#see license.txt for license details +#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/__init__.py +__version__=''' $Id: __init__.py 2877 2006-05-18 15:11:23Z andy $ ''' +__doc__="""The Reportlab PDF generation library.""" +Version = "2.0" + +import sys + +if sys.version_info[0:2] < (2, 3): + warning = """The trunk of reportlab requires Python 2.3 or higher. + Any older applications should either use released versions beginning + with 1.x (e.g. 1.21), or snapshots or checkouts from our 'version1' + branch. + """ + raise ImportError("reportlab needs Python 2.3 or higher", warning) + +def getStory(context): + if context.target == 'UserGuide': + # parse some local file + import os + myDir = os.path.split(__file__)[0] + import yaml + return yaml.parseFile(myDir + os.sep + 'mydocs.yaml') + else: + # this signals that it should revert to default processing + return None + + +def getMonitor(): + import reportlab.monitor + mon = reportlab.monitor.ReportLabToolkitMonitor() + return mon |
