Changeset 1730
- Timestamp:
- 12/22/06 20:56:34 (2 years ago)
- Files:
-
- graphvizplugin/branches/v0.6/build.sh (modified) (1 diff)
- graphvizplugin/branches/v0.6/graphviz/graphviz.py (modified) (5 diffs)
- graphvizplugin/branches/v0.6/ReleaseNotes.txt (modified) (1 diff)
- graphvizplugin/branches/v0.6/setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
graphvizplugin/branches/v0.6/build.sh
r1597 r1730 6 6 PORT=9009 7 7 ;; 8 8 9 10) 9 10 ENV=/Users/peter/projects/env0.10 10 11 PORT=9010 11 12 ;; 13 14 11) 15 ENV=/Users/peter/projects/env0.11 16 PORT=9011 17 ;; 18 12 19 *) 13 echo "build.sh 9|10 "20 echo "build.sh 9|10||11" 14 21 exit 1 15 22 esac graphvizplugin/branches/v0.6/graphviz/graphviz.py
r1597 r1730 14 14 __headurl__ = '$HeadURL$' 15 15 __docformat__ = 'restructuredtext' 16 __version__ = '0.6. 8'16 __version__ = '0.6.9' 17 17 18 18 … … 33 33 from trac.util import escape 34 34 from trac.wiki.formatter import wiki_to_oneliner 35 from trac import mimeview 35 36 36 37 … … 187 188 #self.log.debug('render_macro.URL_in_graph: %s' % str(URL_in_graph)) 188 189 if URL_in_graph: # translate wiki TracLinks in URL 189 content = re.sub(r'URL="(.*?)"', self.expand_wiki_links, content) 190 190 content = re.sub(r'URL="(.*?)"', self.expand_wiki_links, content.decode(encoding)).encode(encoding) 191 191 192 192 # Antialias PNGs with rsvg, if requested … … 247 247 dimensions = 'width="100%" height="100%"' 248 248 # insert SVG, IE compatibility 249 buf.write('<!--[if IE]><embed src="%s/graphviz/%s" type="image/svg+xml" %s></embed><![endif]--> ' % (req.base_url, img_name, dimensions)) 250 buf.write('<![if !IE]><object data="%s/graphviz/%s" type="image/svg+xml" %s>SVG Object</object><![endif]>' % (req.base_url, img_name, dimensions)) 249 buf.write('<object data="%s/graphviz/%s" type="image/svg+xml" %s><embed src="%s/graphviz/%s" type="image/svg+xml" %s></embed></object>' % (req.base_url, img_name, dimensions, req.base_url, img_name, dimensions)) 251 250 252 251 # for binary formats, add map … … 525 524 name = pieces[0] 526 525 img_path = os.path.join(self.cache_dir, name) 527 return req.send_file(img_path )526 return req.send_file(img_path, mimeview.get_mimetype(img_path)) 528 527 return graphvizplugin/branches/v0.6/ReleaseNotes.txt
r1597 r1730 1 Trac Graphviz Plugin v0.6. 8Release Notes1 Trac Graphviz Plugin v0.6.9 Release Notes 2 2 ========================================= 3 November 25, 20064 5 Graphviz plugin v0.6. 8for Trac is now available. The Graphviz wiki3 December 22, 2006 4 5 Graphviz plugin v0.6.9 for Trac is now available. The Graphviz wiki 6 6 processor is a plugin for Trac that allows the the dynamic generation 7 7 of diagrams by the various graphviz programs. The text of a wiki page 8 8 can contain the source text for graphviz and the web browser will show 9 9 the resulting image. 10 11 12 Changes for release v0.6.9 13 -------------------------- 14 15 * Applied chage for the UnicodeDecodeError from anonymous. Resolves 16 issue http://trac-hacks.org/ticket/690. 17 18 * Applied change from jim@inode.co.nz to write the correct html code 19 that displays the svg images. Resolves issue 20 http://trac-hacks.org/ticket/881. 21 22 * Corrected the mime type for images. Resolves issue 23 http://trac-hacks.org/ticket/1022. 10 24 11 25 graphvizplugin/branches/v0.6/setup.py
r1597 r1730 13 13 __headurl__ = '$HeadURL$' 14 14 __docformat__ = 'restructuredtext' 15 __version__ = '0.6. 8'15 __version__ = '0.6.9' 16 16 17 17 from setuptools import setup, find_packages
