summaryrefslogtreecommitdiff
path: root/bin/reportlab/__init__.py
diff options
context:
space:
mode:
authorpinky <>2007-01-07 23:34:21 +0000
committerpinky <>2007-01-07 23:34:21 +0000
commit1849f99b247df53df5b7a6bbe3604e217b3b7582 (patch)
tree3758883f25737fff0b73d5c0182148b262165ac7 /bin/reportlab/__init__.py
parent1315ca0b978da5b4dddc111487b4fb17e57eada4 (diff)
report
bzr revid: pinky-2fb47eb920b3d9fe9838387fd4dbb3842651573c
Diffstat (limited to 'bin/reportlab/__init__.py')
-rw-r--r--bin/reportlab/__init__.py33
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