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