changeset 5089:899b4b2cd7d5

AttachFile: offer editing for .adraw (anywikidraw container)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 12 Sep 2009 18:44:26 +0200
parents a2a51a2ebd6e
children 3aed6e5c26e5
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Sat Sep 12 18:38:37 2009 +0200
+++ b/MoinMoin/action/AttachFile.py	Sat Sep 12 18:44:26 2009 +0200
@@ -318,6 +318,10 @@
                 links.append(fmt.url(1, getAttachUrl(pagename, file, request, drawing=base)) +
                              fmt.text(label_edit) +
                              fmt.url(0))
+            elif ext == '.adraw':
+                links.append(fmt.url(1, getAttachUrl(pagename, file, request, drawing=base)) +
+                             fmt.text(label_edit) +
+                             fmt.url(0))
             else:
                 links.append(fmt.url(1, getAttachUrl(pagename, file, request, do='view')) +
                              fmt.text(label_view) +