equal
deleted
inserted
replaced
658 'splines':'true', |
658 'splines':'true', |
659 'sep':'0.2', |
659 'sep':'0.2', |
660 })) |
660 })) |
661 # svg image file |
661 # svg image file |
662 fd, tmpfile = tempfile.mkstemp('.svg') |
662 fd, tmpfile = tempfile.mkstemp('.svg') |
663 os.close(fd) |
663 try: |
664 generator.generate(visitor, prophdlr, tmpfile) |
664 os.close(fd) |
665 with codecs.open(tmpfile, 'rb', encoding='utf-8') as svgfile: |
665 generator.generate(visitor, prophdlr, tmpfile) |
666 self.w(svgfile.read()) |
666 with codecs.open(tmpfile, 'rb', encoding='utf-8') as svgfile: |
|
667 self.w(svgfile.read()) |
|
668 finally: |
|
669 os.unlink(tmpfile) |
667 |
670 |
668 # breadcrumbs ################################################################## |
671 # breadcrumbs ################################################################## |
669 |
672 |
670 class CWRelationIBreadCrumbsAdapter(ibreadcrumbs.IBreadCrumbsAdapter): |
673 class CWRelationIBreadCrumbsAdapter(ibreadcrumbs.IBreadCrumbsAdapter): |
671 __select__ = is_instance('CWRelation') |
674 __select__ = is_instance('CWRelation') |