Update of /cvsroot/pythonreports/PythonReports/PythonReports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26974
Modified Files:
drivers.py
Log Message:
added text driver backend "Tk";
have different backend lists for texts and images
Index: drivers.py
===================================================================
RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/drivers.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** drivers.py 3 Nov 2006 17:52:24 -0000 1.4
--- drivers.py 4 Nov 2006 14:24:01 -0000 1.5
***************
*** 6,9 ****
--- 6,11 ----
"""
"""History (most recent first):
+ 04-nov-2006 [als] added text driver backend "Tk";
+ have different backend lists for texts and images
03-nov-2006 [als] fix image drivers loading (broken in revision 1.3)
01-nov-2006 [als] get_driver won't fail if no image driver found
***************
*** 56,66 ****
# then we can get through without image driver.
_driver = _image_drivers[None] = ImageDriver
else:
_driver = None
# NOTE backend preference:
! # RL (ReportLab) is best for texts
# PIL is best for images (ReportLab image handling uses PIL too)
! # wx can handle both, but with serious drawbacks.
! for _backend in ("wx", "PIL", "RL"): # most preferred last
_vars = {}
try:
--- 58,72 ----
# then we can get through without image driver.
_driver = _image_drivers[None] = ImageDriver
+ # most preferred backend goes last
+ _backends = ("wx", "PIL")
else:
_driver = None
+ _backends = ("Tk", "wx", "PIL", "RL")
# NOTE backend preference:
! # RL (ReportLab) is best for texts, no image support
# PIL is best for images (ReportLab image handling uses PIL too)
! # wx can handle both but has serious drawbacks
! # Tk has no image support, does not need 3rd party modules
! for _backend in _backends:
_vars = {}
try:
|