diff MoinMoin/config/multiconfig.py @ 5161:d751e9807213

Introduced a new config var "extensions_mapping". You can set up a mapping of attachment extensions to actions. By the drawing syntax these actions are called for the given target.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 22 Sep 2009 11:21:51 +0200
parents 2df8a041ae90
children 012f21c4c04e
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Mon Sep 21 10:59:37 2009 +0200
+++ b/MoinMoin/config/multiconfig.py	Tue Sep 22 11:21:51 2009 +0200
@@ -698,6 +698,14 @@
 # information on the layout of this structure.
 #
 options_no_group_name = {
+  # =========================================================================
+  'attachment_extension': ("Mapping of attachment extensions to actions", None,
+  (
+   ('extensions_mapping',
+       {'.tdraw': {'modify': 'twikidraw'},
+        '.adraw': {'modify': 'anywikidraw'},
+       }, "file extension -> do -> action"),
+  )),
   # ==========================================================================
   'datastruct': ('Datastruct settings', None, (
     ('dicts', lambda cfg, request: datastruct.WikiDicts(request),