[Buildbot-commits] buildbot/buildbot/status/web xmlrpc.py,1.3,1.4
Brian Warner
warner at users.sourceforge.net
Thu Mar 20 18:04:59 UTC 2008
Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6767/buildbot/status/web
Modified Files:
xmlrpc.py
Log Message:
[project @ changelog and minor edits for Etienne PIERRE's patch: add XMLRPC methods. Closes #195]
Original author: warner at lothar.com
Date: 2008-03-19 22:06:54+00:00
Index: xmlrpc.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/xmlrpc.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xmlrpc.py 20 Mar 2008 18:04:53 -0000 1.3
+++ xmlrpc.py 20 Mar 2008 18:04:57 -0000 1.4
@@ -21,7 +21,7 @@
"""
log.msg("getAllBuilders")
return self.status.getBuilderNames()
-
+
def xmlrpc_getStatus(self, builder_name):
"""Return the result of the last build for the given builder
"""
@@ -30,7 +30,7 @@
return Results[lastbuild.getResults()]
def xmlrpc_getLastBuilds(self, builder_name, num_builds):
- """Return the last builds for the given builder
+ """Return the last N completed builds for the given builder.
'builder_name' is the name of the builder to query
'num_builds' is the number of builds to return
@@ -58,13 +58,13 @@
revision = str(revision)
answer = (builder_name,
- build.getNumber(),
- build_end,
- branch,
- revision,
- Results[build.getResults()],
- build.getText(),
- )
+ build.getNumber(),
+ build_end,
+ branch,
+ revision,
+ Results[build.getResults()],
+ build.getText(),
+ )
all_builds.append((build_end, answer))
# now we've gotten all the builds we're interested in. Sort them by
@@ -78,8 +78,6 @@
return all_builds
-
-
def xmlrpc_getAllBuildsInInterval(self, start, stop):
"""Return a list of builds that have completed after the 'start'
timestamp and before the 'stop' timestamp. This looks at all
More information about the Commits
mailing list