[Buildbot-commits] [SPAM] [Buildbot] #836: figure out what Change.links is

Buildbot buildbot-devel at lists.sourceforge.net
Thu May 13 05:02:30 UTC 2010


#836: figure out what Change.links is
------------------------+---------------------------------------------------
Reporter:  dustin       |       Owner:       
    Type:  enhancement  |      Status:  new  
Priority:  major        |   Milestone:  0.8.1
 Version:  0.8.0        |    Keywords:       
------------------------+---------------------------------------------------
 Change.asDict does some weird stuff with files and links:

 {{{
     def asDict(self):
         '''returns a dictonary with suitable info for html/mail
 rendering'''
         result = {}

         files = []
         for file in self.files:
             link = filter(lambda s: s.find(file) != -1, self.links)
             if len(link) == 1:
                 url = link[0]
             else:
                 url = None
             files.append(dict(url=url, name=file))

         files = sorted(files, cmp=lambda a,b: a['name'] < b['name'])
 }}}

 What is this all about?  I don't know how to test it, because I don't know
 what it's supposed to do..

-- 
Ticket URL: <http://buildbot.net/trac/ticket/836>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list