Opened 8 years ago

Closed 8 years ago

#575 closed enhancement (fixed)

[patch] digest base on options too

Reported by: moo Owned by: pkropf
Priority: lowest Component: GraphvizPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.9


@@ -145,7 +146,7 @@
             buf.write('<p>Graphviz macro processor error: requested format <b>(%s)</b> not valid.</p>' % self.out_format)
             return buf.getvalue()
-        sha_key  = + content).hexdigest()
+        sha_key  = + content + self.processor_options).hexdigest()
         img_name = '%s.%s.%s' % (sha_key, self.processor, self.out_format) # cache: hash.<dot>.<png>
         img_path = os.path.join(self.cache_dir, img_name)
         map_name = '' % (sha_key, self.processor)       # cache: hash.<dot>.map

this should allow user to test graphviz settings in trac.ini much easier

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by pkropf

  • Resolution set to fixed
  • Status changed from new to closed

(In [1153]) Added processor options when calculating the sha hash key used as the image file name. Fixes #575.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from pkropf. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.