Modify ↓
Opened 13 years ago
Last modified 10 years ago
#9935 new defect
Doesn't refresh PNG which substitutes the expanded macro
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | DiaVisViewPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description (last modified by )
Scenario:
- Put
[[DiaVisView(a.dia)]]
to the wiki page. - Attach a diagram a.dia.
- Autogenerated raster file a.png is created and displayed on the page.
- Attach an updated diagram a.dia, replacing the old one.
- Autogenerated raster a.png is updated in filesystem but the page shows the old one.
Attachments (0)
Change History (5)
comment:2 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 11 years ago by
-
DiaVisView.py
14 14 import re 15 15 import subprocess 16 16 import Image 17 import time 17 18 18 19 19 20 from genshi.builder import Element, tag … … 171 172 raise Exception('Dia execution failed.') 172 173 173 174 (png_file_size, png_file_time) = os.stat(png_path)[6:8] 175 png_file_time = int(time.time()*1000000) 174 176 # Based on attachment.py, insert 175 177 db = self.env.get_db_cnx() 176 178 cursor = db.cursor()
comment:4 Changed 11 years ago by
Summary: | Doesn't refresh PNG whitch substitutes the expanded macro → Doesn't refresh PNG which substitutes the expanded macro |
---|
comment:5 Changed 10 years ago by
Owner: | robert_martin deleted |
---|
Note: See
TracTickets for help on using
tickets.
0.11/DiaVisView/DiaVisView.py
+ "?format=raw", **attr)