Return-Path: X-Original-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1CFC3933C for ; Sat, 2 Jun 2012 17:20:41 +0000 (UTC) Received: (qmail 58990 invoked by uid 500); 2 Jun 2012 17:20:41 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 58962 invoked by uid 500); 2 Jun 2012 17:20:40 -0000 Mailing-List: contact bloodhound-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-commits@incubator.apache.org Received: (qmail 58952 invoked by uid 99); 2 Jun 2012 17:20:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2012 17:20:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2012 17:20:38 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1B065238890B; Sat, 2 Jun 2012 17:20:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1345535 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Date: Sat, 02 Jun 2012 17:20:17 -0000 To: bloodhound-commits@incubator.apache.org From: gjm@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120602172017.1B065238890B@eris.apache.org> 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