[Zope-CVS] CVS: Packages/Moztop/moztop/content - moztop.js:1.15

Paul Everitt paul@zope.com
Thu, 30 Jan 2003 07:15:32 -0500


Update of /cvs-repository/Packages/Moztop/moztop/content
In directory cvs.zope.org:/tmp/cvs-serv8975

Modified Files:
	moztop.js 
Log Message:
Added a log manager.  There is now a third tab in the status 
area at the bottom.  Log messages go there.  Double click on a 
message to get a dialog with the text.

This is the first cut at a JS prototype to work with these 
tree datasources.  It is explained in doc/DatasourceManagers.txt.



=== Packages/Moztop/moztop/content/moztop.js 1.14 => 1.15 ===
--- Packages/Moztop/moztop/content/moztop.js:1.14	Tue Jan 28 16:24:33 2003
+++ Packages/Moztop/moztop/content/moztop.js	Thu Jan 30 07:14:59 2003
@@ -23,6 +23,8 @@
 var sitesds = null;
 var typesds = null;
 
+var logmanager = null;   // Assigned a LogManager later
+
 /* Function that is executed when Moztop is started. */
 function startProgram() {
   initTaskList();
@@ -57,17 +59,7 @@
   var prefsdir = getProfileURL();
   var sitesds = new RDFDataSource(prefsdir + "/moztop_sites.rdf");
   var typesds = new RDFDataSource(prefsdir + "/moztop_types.rdf");
-  var ds = new RDFDataSource(prefsdir + "/moztop_foo_bar.rdf");
-
-  var fish=ds.getNode("urn:animals:fish");
-  var shark=ds.getNode("urn:animals:greatwhiteshark");
-  fish.addChild(shark);
 
-  shark.addTarget("http://www.some-ficticious-zoo.com/rdf#name","Great White Shark");
-  
-
-  ds.save();
-		
   var explorer=document.getElementById("explorertree");
   explorer.database.AddDataSource(sitesds.getRawDataSource());
   explorer.database.AddDataSource(typesds.getRawDataSource());