[Zope-CVS] CVS: Packages/Moztop/moztop/content/lib - datasourcemanager.js:1.2

Paul Everitt paul@zope.com
Thu, 20 Mar 2003 11:51:53 -0500


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

Modified Files:
	datasourcemanager.js 
Log Message:
Most of the API design is done.


=== Packages/Moztop/moztop/content/lib/datasourcemanager.js 1.1 => 1.2 ===
--- Packages/Moztop/moztop/content/lib/datasourcemanager.js:1.1	Thu Mar 20 09:58:52 2003
+++ Packages/Moztop/moztop/content/lib/datasourcemanager.js	Thu Mar 20 11:51:53 2003
@@ -45,7 +45,18 @@
 }
 
 
-DataSourceManager.prototype.initializeDatasources = 
+DataSourceManager.prototype.initializeProfileDir = 
+function () 
+{
+    /* If this is a first-time install, setup a directory in the 
+       Mozilla profile directory with the right RDF files, etc. */
+    return true;
+}
+
+
+
+
+DataSourceManager.prototype.initializeDataSources = 
 function () 
 {
     /* Called during startup to find needed datasources, 
@@ -55,14 +66,22 @@
 
 
 DataSourceManager.prototype.addDataSource = 
-function (title, rsdurl, rsddom) 
+function (title, rdfurl) 
 {
-    /*   */
+    /* Create a new   */
+    return true;
+}
+
+
+DataSourceManager.prototype.openDataSource = 
+function (rdfurl) 
+{
+    /* Used during Moztop launch  */
     return true;
 }
 
 
-DataSourceManager.prototype.removeDataSource = function () 
+DataSourceManager.prototype.removeDataSource = function (rdfurl) 
 {
     /*   */
     return true;
@@ -87,7 +106,7 @@
 }
 
 
-DataSourceManager.prototype.getDataSource = function (resourceurn) 
+DataSourceManager.prototype.getDataSource = function (resourceurl) 
 {
     /* Given a urn, find the datasource containing that resource.  For 
      sites, the urn is the urn of the root node, whose value is the 
@@ -97,49 +116,57 @@
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.saveDataSource = 
+function reloadDataSource(rdfurl) 
 {
-    /*   */
+    /* Only for local datasources, should fail for remote  */
     return true;
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.dumpDataSources = 
+function reloadSite(rsdurl) 
 {
-    /*   */
+    /* Iterate through all datasources on the tree and dump them 
+     somewhere meaningful, such as the log manager. */
     return true;
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.updateResource = 
+    function (resourceurn, property, value) 
 {
-    /*   */
+    /* A quick way to grab the right RDF */
     return true;
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.getSelectedResource = 
+function () 
 {
     /*   */
     return true;
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.openSelectedResource = 
+function () 
 {
     /*   */
     return true;
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.addResource = 
+function () 
 {
     /*   */
     return true;
 }
 
 
-DataSourceManager.prototype. = function () 
+DataSourceManager.prototype.deleteResource = 
+function () 
 {
     /*   */
     return true;
@@ -275,16 +302,12 @@
 
 Email with requirements
 
+Clearly we need to write down something and agree to it, before
+jumping into code or doing checkins.  Below is a statement of the
+problem and the beginning of a proposal to solve it.
 
-From: Paul Everitt <paul@zope-europe.org>
-Date: Jeu mars 20, 2003  10:59:44 Europe/Paris
-To: Stephan Richter <stephan.richter@tufts.edu>
-Subject: DISCUSS: Proposal from last night's discussion
-
-
-Clearly we need to write down something and agree to it, before jumping into code or doing checkins.  Below is a statement of the problem and the beginning of a proposal to solve it.
-
-I haven't gone too far into writing an API yet, as we should agree on this part first.
+I haven't gone too far into writing an API yet, as we should agree on
+this part first.
 
 --Paul