changeset 221:b1d744e2fd29

cfg.stylesheets for admin configurable additional style sheets imported from: moin--main--1.5--patch-224
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 18 Nov 2005 20:11:50 +0000
parents c7e581712687
children 9211e5f3a380
files MoinMoin/multiconfig.py MoinMoin/theme/__init__.py docs/CHANGES
diffstat 3 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/multiconfig.py	Fri Nov 18 18:56:23 2005 +0000
+++ b/MoinMoin/multiconfig.py	Fri Nov 18 20:11:50 2005 +0000
@@ -293,6 +293,7 @@
     show_timings = 0
     show_version = 0
     siteid = 'default'
+    stylesheets = [] # list of tuples (media, csshref) to insert after theme css, before user css
     superuser = [] # list of unicode user names that have super powers :)
     theme_default = 'modern'
     theme_force = False
--- a/MoinMoin/theme/__init__.py	Fri Nov 18 18:56:23 2005 +0000
+++ b/MoinMoin/theme/__init__.py	Fri Nov 18 20:11:50 2005 +0000
@@ -564,6 +564,11 @@
             if usercss and usercss == href:
                 usercss = None
 
+        # admin configurable additional css (farm or wiki level)
+        for media, csshref in self.request.cfg.stylesheets:
+            html.append(link % (self.stylesheetsCharset, media, csshref))
+
+        
         # tribute to the most sucking browser...
         if self.cfg.hacks.get('ie7', False):
             html.append("""
--- a/docs/CHANGES	Fri Nov 18 18:56:23 2005 +0000
+++ b/docs/CHANGES	Fri Nov 18 20:11:50 2005 +0000
@@ -1,6 +1,12 @@
 MoinMoin Version History
 ========================
 
+Version 1.5.0beta4:
+  Other changes:
+    * cfg.stylesheets = [] (default). You can use this on wiki or farm level
+      to emit stylesheets after the theme css and before the user prefs css.
+      The list entries must be ('screen', '/where/ever/is/my.css') style.
+  
 Version 1.5.0beta3:
   Fixes:
     * fixed editor preview throwing away page content for new pages