Opened 5 years ago

Last modified 20 months ago

#9935 new defect

Doesn't refresh PNG which substitutes the expanded macro

Reported by: root@… Owned by:
Priority: normal Component: DiaVisViewPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)


  1. Put [[DiaVisView(a.dia)]] to the wiki page.
  2. Attach a diagram a.dia.
  3. Autogenerated raster file a.png is created and displayed on the page.
  4. Attach an updated diagram a.dia, replacing the old one.
  5. Autogenerated raster a.png is updated in filesystem but the page shows the old one.

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by root@…

  • 0.11/DiaVisView/

    Author: Al Nikolov <>
    Subject: Fixes PNG URL link
    Closes: #9935
    a b  
    208208        if style:
    209209            attr['style'] = '; '.join(['%s:%s' % (k, escape(v))
    210210                                       for k, v in style.iteritems()])
    211         result = tag.img(src=png_url + "?format=raw", **attr)
     211        result = tag.img(src=png_url.replace("/attachment/", "/raw-attachment/"), **attr)
    212212        if link is not None:
    213213            result = tag.p(result, href=link or url,
    214214                           style='padding:2; border:none')
Last edited 3 years ago by rjollos (previous) (diff)

comment:2 Changed 5 years ago by rjollos

  • Description modified (diff)

comment:3 Changed 3 years ago by regis.patroix@…


    1414import re
    1515import subprocess
    1616import Image
     17import time
    1920from genshi.builder import Element, tag
    171172                raise Exception('Dia execution failed.')
    173174            (png_file_size, png_file_time) = os.stat(png_path)[6:8]
     175            png_file_time = int(time.time()*1000000)
    174176            # Based on, insert
    175177            db = self.env.get_db_cnx()
    176178            cursor = db.cursor()
Last edited 3 years ago by jun66j5 (previous) (diff)

comment:4 Changed 3 years ago by rjollos

  • Summary changed from Doesn't refresh PNG whitch substitutes the expanded macro to Doesn't refresh PNG which substitutes the expanded macro

comment:5 Changed 20 months ago by rjollos

  • Owner robert_martin deleted

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.