Changes between Initial Version and Version 1 of Ticket #7229, comment 1


Ignore:
Timestamp:
May 22, 2014, 2:21:26 AM (10 years ago)
Author:
Jun Omae
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7229, comment 1

    initial v1  
    11Here is another alternative.  Add this before the get_xmlrpc_url definition:
    2 
     2{{{#!text/x-python
    33        def get_buildbot_version(self):
    44                version=self.config.get("buildbot", "version")
     
    1010                else:
    1111                        return 0.7
    12 
    13 
    14 
     12}}}
    1513Then later this:
     14{{{#!text/x-python
    1615                                laststatus=lastbuild[5]
    1716                                lastbranch=lastbuild[3]
     17}}}
    1818becomes:
     19{{{#!text/x-python
    1920                                if self.get_buildbot_version() > 0.7:
    2021                                        laststatus=lastbuild[6]
     
    2324                                        laststatus=lastbuild[5]
    2425                                        lastbranch=lastbuild[3]
    25 
     26}}}
    2627
    2728In the trac.ini file, I added: