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 1C39392E8 for ; Tue, 29 May 2012 17:23:33 +0000 (UTC) Received: (qmail 68608 invoked by uid 500); 29 May 2012 17:23:33 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 68590 invoked by uid 500); 29 May 2012 17:23:33 -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 68579 invoked by uid 99); 29 May 2012 17:23:33 -0000 Received: from bloodhound-vm.apache.org (HELO bloodhound-vm) (140.211.11.32) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 17:23:33 +0000 Received: from bloodhound-vm.apache.org (localhost [127.0.0.1]) by bloodhound-vm (Postfix) with ESMTP id 6B92B8038E; Tue, 29 May 2012 17:23:32 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: "Apache Bloodhound" X-Trac-Version: 0.13dev-r10952 Cc: bloodhound-commits@incubator.apache.org Auto-Submitted: auto-generated X-Mailer: Trac 0.13dev-r10952, by Edgewall Software X-Trac-Project: Apache Bloodhound Date: Tue, 29 May 2012 17:23:30 -0000 Reply-To: bloodhound-dev@incubator.apache.org X-URL: https://issues.apache.org/bloodhound/ Subject: Re: [Apache Bloodhound] #88: Generic conversions of tables to bootstrap X-Trac-Ticket-URL: https://issues.apache.org/bloodhound/ticket/88#comment:9 Message-ID: <067.cc94cd48a6d74a92678091efe75914f0@incubator.apache.org> References: <052.677c2c93c80c82971fb640d3b29469df@incubator.apache.org> X-Trac-Ticket-ID: 88 In-Reply-To: <052.677c2c93c80c82971fb640d3b29469df@incubator.apache.org> #88: Generic conversions of tables to bootstrap --------------------------+----------------- Reporter: gjm | Owner: gjm Type: enhancement | Status: new Priority: major | Milestone: Component: dashboard | Version: Resolution: | Keywords: --------------------------+----------------- Comment (by gjm): r1343821 provides a mechanism to filter genshi streams to add css classes r1343847 adds the conversion for tables If I haven't missed anything obvious, I would like to suggest the following as being a little more obvious about what it is doing. {{{ #!python def attr_modifier(name, event): attrs = event[1][1] class_list = attrs.get(name, '').split() self.log.debug('BH Theme : Element classes ' + str(class_list)) class_list += classes class_list = sorted(set(class_list)) out_classes = ' '.join(class_list) self.log.debug('BH Theme : Inserting class ' + out_classes) return out_classes return attr_modifier }}} -- Ticket URL: Apache Bloodhound The Apache Bloodhound (incubating) issue tracker