incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1345535 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Date Sat, 02 Jun 2012 17:20:17 GMT
Author: gjm
Date: Sat Jun  2 17:20:16 2012
New Revision: 1345535

URL: http://svn.apache.org/viewvc?rev=1345535&view=rev
Log:
theme: oops.. fixing import error for OrderedDict by not worrying about the set type's potential
to reorder the classes - towards #88

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1345535&r1=1345534&r2=1345535&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Sat Jun  2 17:20:16 2012
@@ -16,8 +16,6 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-from collections import OrderedDict
-
 from genshi.filters.transform import Transformer
 
 from trac.core import *
@@ -122,9 +120,7 @@ class BloodhoundTheme(ThemeBase):
                 class_list = attrs.get(name, '').split()
                 self.log.debug('BH Theme : Element classes ' + str(class_list))
 
-                class_list += classes
-                class_list = OrderedDict((k, None) for k in class_list).keys()
-                out_classes = ' '.join(class_list)
+                out_classes = ' '.join(set(class_list + classes))
                 self.log.debug('BH Theme : Inserting class ' + out_classes)
                 return out_classes
             return attr_modifier



Mime
View raw message