/[gzz]/gzz/metacode/umlrst.py
ViewVC logotype

Diff of /gzz/metacode/umlrst.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by humppake, Wed Dec 18 15:56:09 2002 UTC revision 1.7 by humppake, Thu Dec 19 13:46:30 2002 UTC
# Line 128  def embed_diagram(path): Line 128  def embed_diagram(path):
128    
129              #Cut&Pastes imagemap into html              #Cut&Pastes imagemap into html
130              imgmap = open(umltool.settings['tmpdir']+"/"+name+".gen.html").read()              imgmap = open(umltool.settings['tmpdir']+"/"+name+".gen.html").read()
131              out.write("<map name=\""+name+"\">\n")              out.write("<map id=\""+name+"\" name=\""+name+"\">\n")
132              out.write(imgmap[imgmap.find('>',imgmap.find('<map'))+1:\              out.write(imgmap[imgmap.find('>',imgmap.find('<map'))+1:\
133                               imgmap.find('</map>')])                               imgmap.find('</map>')])
134              out.write("</map>\n")              out.write("</map>\n")
135              out.write("<img src=\""+umltool.settings['to_tmpdir']+"/"+name+".gen.png"\              out.write("<img src=\""+umltool.settings['to_tmpdir']+"/"+name+".gen.png"\
136                        +"\" usemap=\""+name+"\"/>")                        +"\" usemap=\""+name+"\" alt=\""+name+"\" />")
137              html = html[html.find("-->", insert)+3:len(html)]              html = html[html.find("-->", insert)+3:len(html)]
138              insert = html.find("<!-- UML:")              insert = html.find("<!-- UML:")
139          out.write(html)          out.write(html)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26