Modify

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

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

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.