Renamed config.py to rl_config.py
authorrgbecker
Fri, 16 Mar 2001 14:51:50 +0000
changeset 724 0b10945bd324
parent 723 0e10839dacdd
child 725 05c05cc41686
Renamed config.py to rl_config.py
docs/tools/rltemplate.py
docs/userguide/ch2_graphics.py
docs/userguide/examples.py
docs/userguide/genuserguide.py
reportlab/demos/gadflypaper/gfe.py
reportlab/demos/pythonpoint/pythonpoint.py
reportlab/graphics/shapes.py
reportlab/graphics/widgetbase.py
reportlab/lib/fonts.py
reportlab/lib/tocindex.py
reportlab/pdfbase/pdfdoc.py
reportlab/pdfgen/canvas.py
reportlab/platypus/doctemplate.py
reportlab/platypus/flowables.py
reportlab/platypus/test/testplatypus.py
reportlab/test/test_graphics_speed.py
reportlab/test/test_paragraphs.py
--- a/docs/tools/rltemplate.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/docs/tools/rltemplate.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,7 +1,7 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/docs/tools/rltemplate.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/docs/tools/rltemplate.py,v 1.9 2001/03/07 18:57:11 rgbecker Exp $
+#$Header: /tmp/reportlab/docs/tools/rltemplate.py,v 1.10 2001/03/16 14:51:50 rgbecker Exp $
 # doc template for RL manuals.  Currently YAML is hard-coded
 #to use this, which is wrong.
 
@@ -9,7 +9,7 @@
 from reportlab.platypus import PageTemplate, \
      BaseDocTemplate, Frame, Paragraph
 from reportlab.lib.units import inch, cm
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 
 
 class FrontCoverTemplate(PageTemplate):
--- a/docs/userguide/ch2_graphics.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/docs/userguide/ch2_graphics.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,7 +1,7 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/docs/userguide/ch2_graphics.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/docs/userguide/ch2_graphics.py,v 1.10 2001/03/07 18:57:11 rgbecker Exp $
+#$Header: /tmp/reportlab/docs/userguide/ch2_graphics.py,v 1.11 2001/03/16 14:51:50 rgbecker Exp $
 from genuserguide import *
 
 heading1("Graphics and Text with $pdfgen$")
@@ -66,7 +66,7 @@
                  pagesize=(595.27,841.89),
                  bottomup = 1,
                  pageCompression=0,
-                 encoding=config.defaultEncoding,
+                 encoding=rl_config.defaultEncoding,
                  verbosity=0):
                  """)
 
@@ -123,8 +123,8 @@
 disc("""The $encoding$ argument determines which font encoding
 is used for the standard fonts; this should correspond to
 the encoding on your system.  It has two values at present:
-$'WinAnsiEncoding'$ or $'MacRomanEncoding'$.  The
-$config.defaultEncoding$ above points to the former, which
+$'WinAnsiEncoding'$ or $'MacRomanEncoding'$.  The variable
+$rl_config.defaultEncoding$ above points to the former, which
 is standard on Windows and many Unices (including Linux). If
 you are a Mac user and want to make a global change, modify the
 line at the top of <i>reportlab/pdfbase/pdfdoc.py</i> to switch it
--- a/docs/userguide/examples.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/docs/userguide/examples.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,7 +1,7 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/docs/userguide/examples.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/docs/userguide/Attic/examples.py,v 1.17 2001/03/07 18:57:11 rgbecker Exp $
+#$Header: /tmp/reportlab/docs/userguide/Attic/examples.py,v 1.18 2001/03/16 14:51:50 rgbecker Exp $
 import string
 
 testannotations="""
@@ -771,7 +771,7 @@
 platypussetup = """
 from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer
 from reportlab.lib.styles import getSampleStyleSheet
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 from reportlab.lib.units import inch
 PAGE_HEIGHT=defaultPageSize[1]; PAGE_WIDTH=defaultPageSize[0]
 styles = getSampleStyleSheet()
--- a/docs/userguide/genuserguide.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/docs/userguide/genuserguide.py	Fri Mar 16 14:51:50 2001 +0000
@@ -2,8 +2,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/docs/userguide/genuserguide.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/docs/userguide/genuserguide.py,v 1.39 2001/03/07 18:57:11 rgbecker Exp $
-__version__=''' $Id: genuserguide.py,v 1.39 2001/03/07 18:57:11 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/docs/userguide/genuserguide.py,v 1.40 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: genuserguide.py,v 1.40 2001/03/16 14:51:50 rgbecker Exp $ '''
 
 
 __doc__ = """
@@ -21,7 +21,7 @@
 #from reportlab.platypus.doctemplate import SimpleDocTemplate
 from reportlab.lib.units import inch
 from reportlab.lib.pagesizes import letter, A4, A5, A3  # latter two for testing
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 from reportlab.platypus import Paragraph, Spacer, Preformatted,\
             PageBreak, CondPageBreak, Flowable, Table, TableStyle, \
             NextPageTemplate, KeepTogether, Image, XPreformatted
--- a/reportlab/demos/gadflypaper/gfe.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/demos/gadflypaper/gfe.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,15 +1,15 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/demos/gadflypaper/gfe.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/demos/gadflypaper/gfe.py,v 1.13 2001/03/07 18:57:11 rgbecker Exp $
-__version__=''' $Id: gfe.py,v 1.13 2001/03/07 18:57:11 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/demos/gadflypaper/gfe.py,v 1.14 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: gfe.py,v 1.14 2001/03/16 14:51:50 rgbecker Exp $ '''
 __doc__=''
 
 #REPORTLAB_TEST_SCRIPT
 import sys
 from reportlab.platypus import *
 from reportlab.lib.styles import getSampleStyleSheet
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 PAGE_HEIGHT=defaultPageSize[1]
 
 styles = getSampleStyleSheet()
--- a/reportlab/demos/pythonpoint/pythonpoint.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/demos/pythonpoint/pythonpoint.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,8 +1,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/demos/pythonpoint/pythonpoint.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/demos/pythonpoint/Attic/pythonpoint.py,v 1.30 2001/03/07 18:57:11 rgbecker Exp $
-__version__=''' $Id: pythonpoint.py,v 1.30 2001/03/07 18:57:11 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/demos/pythonpoint/Attic/pythonpoint.py,v 1.31 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: pythonpoint.py,v 1.31 2001/03/16 14:51:50 rgbecker Exp $ '''
 # xml parser stuff for PythonPoint
 # PythonPoint Markup Language!
 __doc__="""
@@ -59,7 +59,7 @@
 from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY
 from reportlab.lib import styles
 import stdparser 
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 from reportlab.lib import colors
 
 class PPPresentation:
--- a/reportlab/graphics/shapes.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/graphics/shapes.py	Fri Mar 16 14:51:50 2001 +0000
@@ -7,7 +7,7 @@
 import string
 from math import pi, cos, sin, tan
 from reportlab.platypus import Flowable
-from reportlab.config import shapeChecking
+from reportlab.rl_config import shapeChecking
 
 from reportlab.lib import colors
 
@@ -325,7 +325,7 @@
     if shapeChecking:
         """This adds the ability to check every attribute assignment as it is made.
         It slows down shapes but is a big help when developing. It does not
-        get defined if config.shapeChecking = 0"""
+        get defined if rl_config.shapeChecking = 0"""
         #print 'shapeChecking = 1, defining setattr'
         def __setattr__(self, attr, value):
             """By default we verify.  This could be off
--- a/reportlab/graphics/widgetbase.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/graphics/widgetbase.py	Fri Mar 16 14:51:50 2001 +0000
@@ -2,7 +2,7 @@
 import string
 
 from reportlab.graphics import shapes
-from reportlab import config
+from reportlab import rl_config
 from reportlab.lib import colors
 
 class Widget(shapes.UserNode):
@@ -29,10 +29,10 @@
                     value = getattr(self, attr)
                     assert checkerFunc(value), "Invalid value %s for attribute %s in class %s" % (value, attr, self.__class__.__name__)
                     
-    if config.shapeChecking:
+    if rl_config.shapeChecking:
         """This adds the ability to check every attribite assignment as it is made.
         It slows down shapes but is a big help when developing. It does not
-        get defined if config.shapeChecking = 0"""
+        get defined if rl_config.shapeChecking = 0"""
         def __setattr__(self, attr, value):
             """By default we verify.  This could be off
             in some parallel base classes."""
--- a/reportlab/lib/fonts.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/lib/fonts.py	Fri Mar 16 14:51:50 2001 +0000
@@ -2,8 +2,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/lib/fonts.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/lib/fonts.py,v 1.5 2001/03/07 18:57:11 rgbecker Exp $
-__version__=''' $Id: fonts.py,v 1.5 2001/03/07 18:57:11 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/lib/fonts.py,v 1.6 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: fonts.py,v 1.6 2001/03/16 14:51:50 rgbecker Exp $ '''
 import string, sys, os
 ###############################################################################
 #	A place to put useful font stuff
@@ -94,7 +94,7 @@
 	return _font2fnrMap[string.lower(fontName)]
 
 def findT1File(fontName,ext='.pfb'):
-	from reportlab.config import T1SearchPath
+	from reportlab.rl_config import T1SearchPath
 	assert T1SearchPath!=[]
 	n = _findFNR(fontName)+ext
 	for d in T1SearchPath:
--- a/reportlab/lib/tocindex.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/lib/tocindex.py	Fri Mar 16 14:51:50 2001 +0000
@@ -2,8 +2,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/lib/tocindex.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/lib/tocindex.py,v 1.6 2001/03/07 18:57:11 rgbecker Exp $
-__version__=''' $Id: tocindex.py,v 1.6 2001/03/07 18:57:11 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/lib/tocindex.py,v 1.7 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: tocindex.py,v 1.7 2001/03/16 14:51:50 rgbecker Exp $ '''
 __doc__=''
 """
 This module will contain standard Table of Contents and Index objects.
@@ -21,7 +21,7 @@
 from reportlab.lib import enums
 from reportlab.lib import colors
 from reportlab.lib.units import inch, cm
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 
     ##############################################################
     #
--- a/reportlab/pdfbase/pdfdoc.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/pdfbase/pdfdoc.py	Fri Mar 16 14:51:50 2001 +0000
@@ -2,8 +2,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/pdfbase/pdfdoc.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/pdfbase/pdfdoc.py,v 1.41 2001/03/12 16:52:45 rgbecker Exp $
-__version__=''' $Id: pdfdoc.py,v 1.41 2001/03/12 16:52:45 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/pdfbase/pdfdoc.py,v 1.42 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: pdfdoc.py,v 1.42 2001/03/16 14:51:50 rgbecker Exp $ '''
 __doc__=""" 
 PDFgen is a library to generate PDF files containing text and graphics.  It is the 
 foundation for a complete reporting solution in Python.  
@@ -19,7 +19,7 @@
 """
 """extremely anally  retentive structured version of pdfdoc"""
 
-from reportlab import config
+from reportlab import rl_config
 ALLOWED_ENCODINGS = ('WinAnsiEncoding', 'MacRomanEncoding')
 
 PDFError = 'PDFError'
@@ -112,7 +112,7 @@
     # set this to define filters 
     defaultStreamFilters = None
     pageCounter = 1
-    def __init__(self, encoding=config.defaultEncoding, dummyoutline=0, doFonts=0):
+    def __init__(self, encoding=rl_config.defaultEncoding, dummyoutline=0, doFonts=0):
         #self.defaultStreamFilters = [PDFBase85Encode, PDFZCompress] # for testing!
         #self.defaultStreamFilters = [PDFZCompress] # for testing!
         assert encoding in ['MacRomanEncoding',
@@ -1435,7 +1435,7 @@
         PD = PDFDictionary(D)
         return PD.format(document)
 
-def MakeStandardEnglishFontObjects(document, encoding=config.defaultEncoding):
+def MakeStandardEnglishFontObjects(document, encoding=rl_config.defaultEncoding):
     # make the standard fonts and the standard font dictionary
     if encoding not in ALLOWED_ENCODINGS:
         raise ValueError, "bad encoding %s" % repr(encoding)
@@ -1450,7 +1450,7 @@
             # they should be taken in the order they appear in the font file
             F.Encoding = PDFName('StandardEncoding')
         else:
-            F.Encoding = PDFName(config.defaultEncoding)
+            F.Encoding = PDFName(rl_config.defaultEncoding)
         F.__Comment__ = "Standard English Font %s" % repr(name)
         fname = "F"+repr(count)
         F.Name = fname
--- a/reportlab/pdfgen/canvas.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/pdfgen/canvas.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,8 +1,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/pdfgen/canvas.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/pdfgen/canvas.py,v 1.69 2001/03/15 10:45:44 rgbecker Exp $
-__version__=''' $Id: canvas.py,v 1.69 2001/03/15 10:45:44 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/pdfgen/canvas.py,v 1.70 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: canvas.py,v 1.70 2001/03/16 14:51:50 rgbecker Exp $ '''
 __doc__=""" 
 The Canvas object is the primary interface for creating PDF files. See
 doc/userguide.pdf for copious examples.
@@ -18,7 +18,7 @@
 from types import *
 from math import sin, cos, tan, pi, ceil
 
-from reportlab import config
+from reportlab import rl_config
 from reportlab.pdfbase import pdfutils
 from reportlab.pdfbase import pdfdoc
 from reportlab.pdfbase import pdfmetrics
@@ -102,7 +102,7 @@
                  pagesize=(595.27,841.89),
                  bottomup = 1,
                  pageCompression=1,
-                 encoding=config.defaultEncoding,
+                 encoding=rl_config.defaultEncoding,
                  verbosity=0):
         """Create a canvas of a given size. etc.
         Most of the attributes are private - we will use set/get methods
--- a/reportlab/platypus/doctemplate.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/platypus/doctemplate.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,9 +1,9 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/doctemplate.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/platypus/doctemplate.py,v 1.38 2001/03/13 08:38:11 dinu_gherman Exp $
+#$Header: /tmp/reportlab/reportlab/platypus/doctemplate.py,v 1.39 2001/03/16 14:51:50 rgbecker Exp $
 
-__version__=''' $Id: doctemplate.py,v 1.38 2001/03/13 08:38:11 dinu_gherman Exp $ '''
+__version__=''' $Id: doctemplate.py,v 1.39 2001/03/16 14:51:50 rgbecker Exp $ '''
 
 __doc__="""
 This module contains the core structure of platypus.
@@ -32,7 +32,7 @@
 from reportlab.platypus.flowables import *
 from reportlab.platypus.paragraph import Paragraph
 from reportlab.platypus.frames import Frame
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 import reportlab.lib.sequencer
 
 from types import *
--- a/reportlab/platypus/flowables.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/platypus/flowables.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,8 +1,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/flowables.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/platypus/flowables.py,v 1.16 2001/03/07 18:57:12 rgbecker Exp $
-__version__=''' $Id: flowables.py,v 1.16 2001/03/07 18:57:12 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/platypus/flowables.py,v 1.17 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: flowables.py,v 1.17 2001/03/16 14:51:50 rgbecker Exp $ '''
 __doc__="""
 A flowable is a "floating element" in a document whose exact position is determined by the
 other elements that precede it, such as a paragraph, a diagram interspersed between paragraphs,
@@ -32,7 +32,7 @@
 from reportlab.lib.colors import red
 from reportlab.pdfbase import pdfutils
 
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 PAGE_HEIGHT = defaultPageSize[1]
 
 #############################################################
--- a/reportlab/platypus/test/testplatypus.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/platypus/test/testplatypus.py	Fri Mar 16 14:51:50 2001 +0000
@@ -1,8 +1,8 @@
 #copyright ReportLab Inc. 2000
 #see license.txt for license details
 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/platypus/test/testplatypus.py?cvsroot=reportlab
-#$Header: /tmp/reportlab/reportlab/platypus/test/Attic/testplatypus.py,v 1.22 2001/03/07 18:57:12 rgbecker Exp $
-__version__=''' $Id: testplatypus.py,v 1.22 2001/03/07 18:57:12 rgbecker Exp $ '''
+#$Header: /tmp/reportlab/reportlab/platypus/test/Attic/testplatypus.py,v 1.23 2001/03/16 14:51:50 rgbecker Exp $
+__version__=''' $Id: testplatypus.py,v 1.23 2001/03/16 14:51:50 rgbecker Exp $ '''
 
 #tests and documents Page Layout API
 __doc__="""This is not obvious so here's a brief explanation.  This module is both
@@ -21,7 +21,7 @@
 from reportlab.lib.units import inch, cm
 from reportlab.lib.styles import PropertySet, getSampleStyleSheet, ParagraphStyle
 from reportlab.lib import colors
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 PAGE_HEIGHT = defaultPageSize[1]
 
 #################################################################
--- a/reportlab/test/test_graphics_speed.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/test/test_graphics_speed.py	Fri Mar 16 14:51:50 2001 +0000
@@ -8,7 +8,7 @@
 
 import os, sys, time, profile
 
-import reportlab.config
+import reportlab.rl_config
 from reportlab.test import unittest
 from reportlab.lib import colors
 from reportlab.lib.units import cm
@@ -28,7 +28,7 @@
         The rectangle's fillColor is yellow.
         The string's fillColor is red.
         """
-        reportlab.config.shapeChecking = not isFast
+        reportlab.rl_config.shapeChecking = not isFast
             
         pdfPath = 'test_graphics_speed_fast.pdf'
         c = Canvas(pdfPath)
--- a/reportlab/test/test_paragraphs.py	Fri Mar 16 14:49:57 2001 +0000
+++ b/reportlab/test/test_paragraphs.py	Fri Mar 16 14:51:50 2001 +0000
@@ -6,7 +6,7 @@
 from reportlab.lib.units import inch
 from reportlab.lib.colors import red, black, navy, white
 from reportlab.lib.randomtext import randomText
-from reportlab.config import defaultPageSize
+from reportlab.rl_config import defaultPageSize
 
 (PAGE_WIDTH, PAGE_HEIGHT) = defaultPageSize