Modify

Opened 18 years ago

Closed 18 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

Description

@@ -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  = sha.new(self.processor + content).hexdigest()
+        sha_key  = sha.new(self.processor + 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 = '%s.%s.map' % (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 18 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
Action
as closed The owner will remain Peter Kropf.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.