bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #88: Generic conversions of tables to bootstrap
Date Tue, 29 May 2012 17:23:30 GMT
#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: <https://issues.apache.org/bloodhound/ticket/88#comment:9>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message