﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
3180,[Patch] Allow info in template,trac@…,coderanger,"
{{{
--- web_ui.py.orig	2008-06-13 09:58:46.000000000 +1000
+++ web_ui.py	2008-06-13 09:58:51.000000000 +1000
@@ -40,4 +40,6 @@
             add_stylesheet(req, 'theme/'+theme['css'])
         if theme and 'template' in theme:
             req.chrome['theme'] = os.path.basename(theme['template'])
+        if theme:
+            req.chrome['theme_info'] = theme
         return template, data, content_type
}}}


The above code block allows you to get at your theme info by using {{{ chrome['theme_info']['some_thing_you_want'] }}}.

This allows you define extra stuff in your theme.py if you overload the get_theme_info() method, as I have done to allow for a color setting in a theme i will be uploading shortly. Without the above patch it will not be possible to use a different color of the same theme by simply putting a line in the trac.ini

It would be nice if you could apply the above patch, or have some other way of getting at the [theme] stuff from trac.ini in the template. Like how you can get at the footer/about info from there.


regards,
Danial",enhancement,new,low,ThemeEnginePlugin,minor,,,,0.11
