[PythonReports-checkins] PythonReports/PythonReports drivers.py, 1.2, 1.3
Brought to you by:
a1s
From: alexander s. <a1...@us...> - 2006-11-01 19:22:01
|
Update of /cvsroot/pythonreports/PythonReports/PythonReports In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27490 Modified Files: drivers.py Log Message: get_driver won't fail if no image driver found (but the first image operation will raise an error) Index: drivers.py =================================================================== RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/drivers.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** drivers.py 1 Nov 2006 17:37:56 -0000 1.2 --- drivers.py 1 Nov 2006 19:21:55 -0000 1.3 *************** *** 6,9 **** --- 6,11 ---- """ """History (most recent first): + 01-nov-2006 [als] get_driver won't fail if no image driver found + (but the first image operation will raise an error) 01-nov-2006 [als] driver classes have backend name property 11-oct-2006 [als] fix variable name in ImageDriver.resize *************** *** 243,246 **** --- 245,255 ---- return _rv + # Use above ImageDriver class as dummy fallback driver + # (will be overwritten as soon as any actual driver is found). + # This will raise NotImplementdedError when the first image + # operation is attempted, but if there are no images in report + # then we can get through without image driver. + _image_drivers[None] = ImageDriver + class TextDriver(object): |