[Zope-CVS] CVS: Packages/Moztop/moztop/content/workspace - genericviewer.xml:1.6

Paul Everitt paul@zope.com
Mon, 28 Apr 2003 09:51:14 -0400


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

Modified Files:
	genericviewer.xml 
Log Message:
Now that I have a local in-mem datasource to make assertions, DELETE 
mostly removes (just hides at this point) the deleted resource.  No 
need to refresh from the server.  Also, New->ZPT Page works.



=== Packages/Moztop/moztop/content/workspace/genericviewer.xml 1.5 => 1.6 ===
--- Packages/Moztop/moztop/content/workspace/genericviewer.xml:1.5	Thu Apr 17 04:53:16 2003
+++ Packages/Moztop/moztop/content/workspace/genericviewer.xml	Mon Apr 28 09:50:43 2003
@@ -159,18 +159,6 @@
     </method>
 
     <constructor>
-      // First find out if this resource exists (via open resource) or 
-      // is being created (view new resource).  We'll use presence in the 
-      // RDF graph as a good enough answer.
-
-      urn = this.getAttribute("urn");
-      res = sitesmanager.getResource(urn);
-      if (!res) {
-        this.createResource();
-	alert("finished createResource");
-	return;
-      }
-
       this.getSourceURL();
 
       // Some shortcuts for grabbing subwidget elements