reportlab/__init__.py
author rgbecker
Tue, 09 Nov 2004 11:49:50 +0000
changeset 2407 71caad345e58
parent 2332 2a7ab4405e18
child 2618 19c47ce76a0c
permissions -rw-r--r--
reportlab: release 1.20
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2332
2a7ab4405e18 Remove $Header:, fix CopyRight & history
rgbecker
parents: 2216
diff changeset
     1
#Copyright ReportLab Europe Ltd. 2000-2004
494
54257447cfe9 Changed to indirect copyright
rgbecker
parents: 478
diff changeset
     2
#see license.txt for license details
2332
2a7ab4405e18 Remove $Header:, fix CopyRight & history
rgbecker
parents: 2216
diff changeset
     3
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/__init__.py
2a7ab4405e18 Remove $Header:, fix CopyRight & history
rgbecker
parents: 2216
diff changeset
     4
__version__=''' $Id$ '''
681
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
     5
__doc__="""The Reportlab PDF generation library."""
2407
71caad345e58 reportlab: release 1.20
rgbecker
parents: 2332
diff changeset
     6
Version = "1.20"
681
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
     7
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
     8
def getStory(context):
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
     9
    if context.target == 'UserGuide':
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    10
        # parse some local file
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    11
        import os
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    12
        myDir = os.path.split(__file__)[0]
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    13
        import yaml
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    14
        return yaml.parseFile(myDir + os.sep + 'mydocs.yaml')
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    15
    else:
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    16
        # this signals that it should revert to default processing
934a4f24ea5d Added explicit font and encoding support
andy_robinson
parents: 625
diff changeset
    17
        return None
2216
aadcd9dc9480 Font reregistration cleanup
andy_robinson
parents: 2203
diff changeset
    18
aadcd9dc9480 Font reregistration cleanup
andy_robinson
parents: 2203
diff changeset
    19
aadcd9dc9480 Font reregistration cleanup
andy_robinson
parents: 2203
diff changeset
    20
def getMonitor():
aadcd9dc9480 Font reregistration cleanup
andy_robinson
parents: 2203
diff changeset
    21
    import reportlab.monitor
aadcd9dc9480 Font reregistration cleanup
andy_robinson
parents: 2203
diff changeset
    22
    mon = reportlab.monitor.ReportLabToolkitMonitor()
2407
71caad345e58 reportlab: release 1.20
rgbecker
parents: 2332
diff changeset
    23
    return mon