Patch for the bugzilla backend.



The bugzilla backend needs a few cosmetic changes to work.

Index: backend-bugzilla.cs
===================================================================
RCS file: /cvs/gnome/dashboard/backends/backend-bugzilla.cs,v
retrieving revision 1.10
diff -u -r1.10 backend-bugzilla.cs
--- backend-bugzilla.cs	17 Nov 2003 14:23:27 -0000	1.10
+++ backend-bugzilla.cs	19 Nov 2003 12:51:03 -0000
@@ -19,7 +19,7 @@
 
 	class Bugzilla : BackendSimple {
 
-		private const string bugzilla_host = "http://bugzilla.ximian.com/";;
+		private const string bugzilla_host = "http://bugzilla.ximian.com";;
 
 		public override bool Startup ()
 		{
@@ -47,7 +47,7 @@
 			XmlDocument xml = new XmlDocument ();
 
 			HttpWebRequest req = (HttpWebRequest)
-				WebRequest.Create (String.Format ("{0}/xml.cgi?{1}", bugzilla_host, bug));
+				WebRequest.Create (String.Format ("{0}/xml.cgi?id={1}", bugzilla_host, bug));
 									       
 			req.UserAgent = "GNOME Dashboard";
 			WebResponse resp = req.GetResponse ();
@@ -67,8 +67,8 @@
 				Console.WriteLine ("Bugzilla XML is not well-formed!");
 				return null;
 			}
-
-			return null;
+			
+			return xml;
 		}
 
 		private string XmlBugToHtml (XmlDocument xml)
-- 
Gaute Strokkenes                        http://www.srcf.ucam.org/~gs234/
With YOU, I can be MYSELF..  We don't NEED Dan Rather..


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]