[Buildbot-commits] buildbot/buildbot/status/web baseweb.py, 1.28, 1.29

Brian Warner warner at users.sourceforge.net
Sun Sep 30 21:20:51 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/status/web
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12573/buildbot/status/web

Modified Files:
	baseweb.py 
Log Message:
[project @ Waterfall: add a DeprecationWarning, advising users to switch to WebStatus]

Original author: warner at lothar.com
Date: 2007-09-30 21:20:21+00:00

Index: baseweb.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/web/baseweb.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- baseweb.py	30 Sep 2007 19:52:45 -0000	1.28
+++ baseweb.py	30 Sep 2007 21:20:48 -0000	1.29
@@ -498,6 +498,12 @@
     def __init__(self, http_port=None, distrib_port=None, allowForce=True,
                  categories=None, css=buildbot_css, favicon=buildbot_icon,
                  robots_txt=None):
+        import warnings
+        m = ("buildbot.status.html.Waterfall is deprecated as of 0.7.6 "
+             "and will be removed from a future release. "
+             "Please use html.WebStatus instead.")
+        warnings.warn(m, DeprecationWarning)
+
         WebStatus.__init__(self, http_port, distrib_port, allowForce)
         self.css = css
         if css:





More information about the Commits mailing list