Attachment 'mapname.diff'

Download

   1 --- orig/MoinMoin/action/AttachFile.py
   2 +++ mod/MoinMoin/action/AttachFile.py
   3 @@ -485,7 +485,9 @@
   4      finally:
   5          file.close()
   6  
   7 -
   8 +    # touch attachment directory to invalidate cache if new map is saved
   9 +    if ext == '.map':
  10 +        os.utime(getAttachDir(pagename), None)
  11  
  12  def del_file(pagename, request):
  13      _ = request.getText
  14 
  15 
  16 --- orig/MoinMoin/parser/wiki.py
  17 +++ mod/MoinMoin/parser/wiki.py
  18 @@ -249,7 +249,7 @@
  19                      except OSError:
  20                          pass
  21                      else:
  22 -                        mapid = 'ImageMapOf'+pagename
  23 +                        mapid = 'ImageMapOf'+drawing
  24                          # replace MAPNAME
  25                          map = map.replace('%MAPNAME%', mapid)
  26                          # add alt and title tags to areas

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2011-01-19 16:58:45, 10.0 KB) [[attachment:TO.tdraw]]
  • [get | view] (2005-11-28 21:54:52, 173.7 KB) [[attachment:TWikiDrawPlugin-1.103-OliverGraf-source.zip]]
  • [get | view] (2005-11-28 21:58:04, 174.0 KB) [[attachment:TWikiDrawPlugin-1.103-utf8-source.zip]]
  • [get | view] (2005-12-27 01:48:17, 170.3 KB) [[attachment:TWikiDrawPlugin-OliverGraf-SourceTree.zip]]
  • [get | view] (2009-09-19 19:46:07, 10.0 KB) [[attachment:anotherTest.tdraw]]
  • [get | view] (2004-02-07 18:31:10, 0.8 KB) [[attachment:mapname.diff]]
  • [get | view] (2012-10-22 07:10:47, 30.0 KB) [[attachment:meintest.tdraw]]
  • [get | view] (2010-09-20 14:11:48, 10.0 KB) [[attachment:mytest.tdraw]]
  • [get | view] (2010-12-28 18:33:16, 10.0 KB) [[attachment:new.tdraw]]
  • [get | view] (2005-09-12 16:36:38, 181.8 KB) [[attachment:newline_fix_twikidraw-sources.zip]]
  • [get | view] (2005-09-12 16:36:24, 205.5 KB) [[attachment:newline_fix_twikidraw.jar]]
  • [get | view] (2005-11-28 21:55:38, 185.3 KB) [[attachment:twikidraw-1.103-OliverGraf.jar]]
  • [get | view] (2005-11-28 21:56:32, 10.3 KB) [[attachment:twikidraw-1.103-full.diff]]
  • [get | view] (2005-11-28 21:58:29, 19.5 KB) [[attachment:twikidraw-1.103-utf8.diff]]
  • [get | view] (2005-11-28 21:57:38, 185.6 KB) [[attachment:twikidraw-1.103-utf8.jar]]
  • [get | view] (2004-02-07 20:44:17, 11.0 KB) [[attachment:twikidraw-full.diff]]
  • [get | view] (2004-02-07 20:44:26, 10.0 KB) [[attachment:twikidraw-png.zip]]
  • [get | view] (2004-02-07 20:44:47, 174.8 KB) [[attachment:twikidraw-sources.zip]]
  • [get | view] (2004-02-07 20:45:08, 184.3 KB) [[attachment:twikidraw.jar]]
  • [get | view] (2009-02-26 06:31:19, 1.1 KB) [[attachment:twikidrawbuild.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.