Changeset 3574
- Timestamp:
- 04/29/08 13:07:09 (7 months ago)
- Files:
-
- diavisviewplugin/0.11/DiaVisView/DiaVisView.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
diavisviewplugin/0.11/DiaVisView/DiaVisView.py
r3573 r3574 1 #!/usr/bin/python 1 2 # -*- coding: utf-8 -*- 2 3 # This software is licensed as described in the file COPYING, which … … 14 15 import re 15 16 import gzip 17 import Image 18 16 19 17 20 from genshi.builder import tag … … 116 119 except Exception: 117 120 png_mtime = 0 121 else: 122 try: 123 im = Image.open(png_path) 124 except Exception, e: 125 self.env.log.info('Error checking original png file width for Dia = %s',e) 126 raise Exception('Error checking original png file width for Dia.') 127 existing_width = im.size[0] 128 118 129 119 130 self.env.log.info('Comparing dia and png file modification times : %s, %s',dia_mtime,dia_mtime) 120 131 121 if dia_mtime > png_mtime: 132 133 134 if (dia_mtime > png_mtime) or (existing_width != width): 122 135 try: 123 136 # The file maybe compressed. The name has to be prepended to keep the extension.
