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

Stephan Richter srichter@cbu.edu
Sat, 15 Mar 2003 12:16:20 -0500


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

Modified Files:
	moztop.js 
Log Message:
- Cleaned up LogManager a bit more.
- Reimplemented TaskManager based on LogManager
- Implemented dump() function, so that the logmanager gets them, since the
  default dump() implementation does not work for me and Sidnei.


=== Packages/Moztop/moztop/content/moztop.js 1.18 => 1.19 ===
--- Packages/Moztop/moztop/content/moztop.js:1.18	Sat Mar 15 11:28:22 2003
+++ Packages/Moztop/moztop/content/moztop.js	Sat Mar 15 12:15:49 2003
@@ -22,19 +22,15 @@
 /* Setup the global RDFDataSources objects and initialize later */
 var sitesmanager = null;
 var logmanager = null;
+var taskmanager = null;
 
 /* Function that is executed when Moztop is started. */
 function startProgram() {
-  initTaskList();
-  initLogManager();
-
-  /* We now have logmanger, let's use it */
-  logmanager.addMessage("Initializing Explorer","moztop.js, startProgram");
-  initExplorer();
-//   var m = sitesmanager.moztopds.serializeToString();
-//   dump("\n" + m);
-//   logmanager.addMessage("Sites datastore serialized",
-// 			"moztop.js, startProgram",m);
+    initLogManager();
+    /* We now have logmanger, let's use it */
+    logmanager.addMessage("Initializing Explorer","moztop.js, startProgram");
+    initTaskManager();
+    initExplorer();
 }
 
 /* Function that is executed when Moztop is started. */
@@ -74,23 +70,23 @@
 }
 
 function DataSourceManager () {
-  /* A superclass for the various datasources */
-
-  this.dcns = "http://www.purl.org/dc/1.1#";
-  this.zoperdfns = "http://www.zope.org/rdf#";
-  this.ncns ="http://home.netscape.com/NC-rdf#";
-
-  this.titleprop = this.dcns + "title";
-  this.descriptionprop = this.dcns + "description";
-  this.resourcetypeprop = this.zoperdfns + "resourcetype";
-  this.urlprop = this.zoperdfns + "url";
-  this.usernameprop = this.zoperdfns + "username";
-  this.passwordprop = this.zoperdfns + "password";
-  this.styleidprop = this.zoperdfns + "styleid";
-  this.subitemsprop = this.ncns + "subitems";
-
-  this.profileurl = this.getProfileDirURL();
-  this.elementid = null;
+    /* A superclass for the various datasources */
+    
+    this.dcns = "http://www.purl.org/dc/1.1#";
+    this.zoperdfns = "http://www.zope.org/rdf#";
+    this.ncns ="http://home.netscape.com/NC-rdf#";
+    
+    this.titleprop = this.dcns + "title";
+    this.descriptionprop = this.dcns + "description";
+    this.resourcetypeprop = this.zoperdfns + "resourcetype";
+    this.urlprop = this.zoperdfns + "url";
+    this.usernameprop = this.zoperdfns + "username";
+    this.passwordprop = this.zoperdfns + "password";
+    this.styleidprop = this.zoperdfns + "styleid";
+    this.subitemsprop = this.ncns + "subitems";
+    
+    this.profileurl = this.getProfileDirURL();
+    this.elementid = null;
 }
 
 DataSourceManager.prototype.getProfileDirURL=