/[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.34 by humppake, Tue Feb 11 12:30:13 2003 UTC revision 1.35 by humppake, Tue Feb 11 13:26:47 2003 UTC
# Line 27  def __rst_init__(): Line 27  def __rst_init__():
27      """      """
28      uml_directive.arguments = (1, 0, 0)      uml_directive.arguments = (1, 0, 0)
29      uml_directive.options = {'caption': docutils.parsers.rst.directives.unchanged,      uml_directive.options = {'caption': docutils.parsers.rst.directives.unchanged,
30                               'scale': docutils.parsers.rst.directives.nonnegative_int,                               'width': docutils.parsers.rst.directives.unchanged,
31                               }                               }
32      uml_directive.content = 1      uml_directive.content = 1
33    
# Line 63  def uml_directive(name, arguments, optio Line 63  def uml_directive(name, arguments, optio
63      trans = mputils._slashify(umltool.settings['to_tmpdir'])      trans = mputils._slashify(umltool.settings['to_tmpdir'])
64      #print trans      #print trans
65      src = trans+attributes['name']+"_gen.eps"      src = trans+attributes['name']+"_gen.eps"
66      uml_node = docutils.nodes.image(uri=src, alt="UML: "+attributes['name'],      options['uri'] = src
67                                      _uml=attributes['name'])      options['alt'] = "UML: "+attributes['name']
68        options['_uml'] = attributes['name']
69        uml_node = docutils.nodes.image(src, **options)
70    
71      #if we have a caption, we want to make it a figure (or do we?)      #if we have a caption, we want to make it a figure (or do we?)
72      if options.has_key('caption') and len(options['caption']) > 0:      if options.has_key('caption') and len(options['caption']) > 0:

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

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