Mercurial > hg > svgsitemap
diff example/example.py @ 2:30d03e830354
compute line widths
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 28 Dec 2010 16:47:36 -0800 |
parents | 084088505eea |
children | aa4eab6dc994 |
line wrap: on
line diff
--- a/example/example.py Tue Dec 28 16:23:07 2010 -0800 +++ b/example/example.py Tue Dec 28 16:47:36 2010 -0800 @@ -5,7 +5,7 @@ def example(environ, start_response): link = '<a href="/%s">%s</a>' body = '<br/>'.join([link % (i,i) for i in range(30)]) - body = '<html><body>%s</body></html>' % body + body = '<html><body><a href="/map">map</a><br/>%s</body></html>' % body response = Response(content_type='text/html', body=body) return response(environ, start_response) @@ -14,7 +14,7 @@ inifile = os.path.join(dirname, 'example.gv.txt') svgfile = os.path.join(dirname, 'example.svg') app = MapserverMiddleware(example, svgfile) - app = SVGSiteMap(app, file=inifile, output=svgfile) + app = SVGSiteMap(app, file=inifile, output=svgfile, name='foo.com') return app if __name__ == '__main__':