50 |
|
|
51 |
attributes = {'name': arguments[0]} |
attributes = {'name': arguments[0]} |
52 |
options['uri'] = slashify(to_tmpdir)+attributes['name'] |
options['uri'] = slashify(to_tmpdir)+attributes['name'] |
53 |
if not eps_only: options['uri'] += '.gen.png' |
if not eps_only: options['uri'] += config.midfix+'.png' |
54 |
else: options['uri'] += '_gen.eps' |
else: options['uri'] += '_gen.eps' |
55 |
options['alt'] = attributes['name'] |
options['alt'] = attributes['name'] |
56 |
options['title'] = attributes['name'] |
options['title'] = attributes['name'] |
64 |
# already exists. |
# already exists. |
65 |
|
|
66 |
mp_filename = slashify(config.mp_directory)+attributes['name'] |
mp_filename = slashify(config.mp_directory)+attributes['name'] |
67 |
mp = open(mp_filename+'.gen.mp.3', 'w') |
mp = open(mp_filename+config.midfix+'.mp.3', 'w') |
68 |
mp.write(temp) |
mp.write(temp) |
69 |
mp.close() |
mp.close() |
70 |
|
|
89 |
|
|
90 |
attributes = {'name': arguments[0]} |
attributes = {'name': arguments[0]} |
91 |
src = slashify(to_tmpdir)+attributes['name'] |
src = slashify(to_tmpdir)+attributes['name'] |
92 |
if not eps_only: src += '.gen.png' |
if not eps_only: src += config.midfix+'.png' |
93 |
else: src += '_gen.eps' |
else: src += '_gen.eps' |
94 |
|
|
95 |
options['uri'] = src |
options['uri'] = src |
125 |
dir = slashify(config.mp_directory) |
dir = slashify(config.mp_directory) |
126 |
diagram = attributes['name'] |
diagram = attributes['name'] |
127 |
|
|
128 |
uml_file = open(dir+diagram+'.gen.uml', 'w') |
uml_file = open(dir+diagram+config.midfix+'.uml', 'w') |
129 |
uml_file.write(files[0]) |
uml_file.write(files[0]) |
130 |
uml_file.close() |
uml_file.close() |
131 |
|
|
132 |
mp = open(dir+diagram+'.gen.mp', 'w') |
mp = open(dir+diagram+config.midfix+'.mp', 'w') |
133 |
mp.write(files[1]) |
mp.write(files[1]) |
134 |
mp.close() |
mp.close() |
135 |
|
|
160 |
|
|
161 |
attributes = {'name': arguments[0]} |
attributes = {'name': arguments[0]} |
162 |
src = slashify(to_tmpdir)+attributes['name'] |
src = slashify(to_tmpdir)+attributes['name'] |
163 |
if not eps_only: src += '.gen.png' |
if not eps_only: src += config.midfix+'.png' |
164 |
else: src += '_gen.eps' |
else: src += '_gen.eps' |
165 |
|
|
166 |
uml_node = docutils.nodes.image(_uml=attributes['name'], uri=src) |
uml_node = docutils.nodes.image(_uml=attributes['name'], uri=src) |
181 |
Add reference information for a spesific diagram. |
Add reference information for a spesific diagram. |
182 |
""" |
""" |
183 |
refer = slashify(config.working_directory)+config.output_filename |
refer = slashify(config.working_directory)+config.output_filename |
184 |
refers_filepath = slashify(config.mp_directory)+diagram+".gen.refers" |
refers_filepath = slashify(config.mp_directory)+diagram+config.midfix+".refers" |
185 |
if (os.path.isfile(refers_filepath)): |
if (os.path.isfile(refers_filepath)): |
186 |
old_refers = open(refers_filepath, "r").read() |
old_refers = open(refers_filepath, "r").read() |
187 |
if old_refers.find(config.output_filename) == -1: |
if old_refers.find(config.output_filename) == -1: |