Opened 12 years ago

Closed 12 years ago

#575 closed enhancement (fixed)

[patch] digest base on options too

Reported by: moo Owned by: Peter Kropf
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 12 years ago by Peter Kropf

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Peter Kropf.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.