diff MoinMoin/theme/__init__.py @ 453:493972205fac

removed duplicate AttachFile entry in actions menu imported from: moin--main--1.5--patch-457
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 21 Feb 2006 21:41:21 +0000
parents f25101c236bb
children 9b6ba709da88
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Mon Feb 20 09:29:22 2006 +0000
+++ b/MoinMoin/theme/__init__.py	Tue Feb 21 21:41:21 2006 +0000
@@ -945,8 +945,9 @@
 
             options.append(option % data)
 
-        # Add custom actions not in the standard menu
-        more = [item for item in available if not item in titles]
+        # Add custom actions not in the standard menu, except for
+        # some actions like AttachFile (we have them on top level)
+        more = [item for item in available if not item in titles and not item in ('AttachFile',)]
         more.sort()
         if more:
             # Add separator