changeset 5082:bde680d31a1a

action.anywikidraw: changed container extension to .adraw
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 03 Sep 2009 10:24:14 +0200
parents 3e1d3367aeaa
children 7c8aa4e9c0b8
files MoinMoin/action/anywikidraw.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/anywikidraw.py	Wed Sep 02 19:54:04 2009 +0200
+++ b/MoinMoin/action/anywikidraw.py	Thu Sep 03 10:24:14 2009 +0200
@@ -43,7 +43,7 @@
     # we force the title here, needed later for html>wiki converter
     kw['title'] = "drawing:%s" % wikiutil.quoteWikinameURL(url)
     pagename, drawing = AttachFile.absoluteName(url, self.page.page_name)
-    containername = wikiutil.taintfilename(drawing) + ".tdraw"
+    containername = wikiutil.taintfilename(drawing) + ".adraw"
     drawing_url = AttachFile.getAttachUrl(pagename, containername, self.request, drawing=drawing, upload=True)
     ci = AttachFile.ContainerItem(self.request, pagename, containername)
     if not ci.exists():
@@ -59,7 +59,7 @@
     # XXX text arg is unused!
     _ = self.request.getText
     pagename, drawing = AttachFile.absoluteName(url, self.page.page_name)
-    containername = wikiutil.taintfilename(drawing) + ".tdraw"
+    containername = wikiutil.taintfilename(drawing) + ".adraw"
 
     drawing_url = AttachFile.getAttachUrl(pagename, containername, self.request, drawing=drawing, upload=True)
     ci = AttachFile.ContainerItem(self.request, pagename, containername)
@@ -136,11 +136,11 @@
         basename, ext = os.path.splitext(basename)
         basename = basename.replace('.svg', '')
 
-        ci = AttachFile.ContainerItem(request, pagename, basename + '.tdraw')
+        ci = AttachFile.ContainerItem(request, pagename, basename + '.adraw')
         filecontent = file_upload.stream
         content_length = None
         if ext == '.svg': # TWikiDraw POSTs this first
-            AttachFile._addLogEntry(request, 'ATTDRW', pagename, basename + '.tdraw')
+            AttachFile._addLogEntry(request, 'ATTDRW', pagename, basename + '.adraw')
             ci.truncate()
             filecontent = filecontent.read() # read file completely into memory
             filecontent = filecontent.replace("\r", "")
@@ -169,7 +169,7 @@
         drawing_name = ''
 
         htdocs = "%s%s" % (request.cfg.url_prefix_static, '/applets/anywikidraw')
-        ci = AttachFile.ContainerItem(request, pagename, target + '.tdraw')
+        ci = AttachFile.ContainerItem(request, pagename, target + '.adraw')
         if ci.exists():
             drawing_name = "%s.svg" % target
             target_url = ci.member_url(target + '.svg')