[Zope3-checkins] CVS: zopeproducts/oracleda - adapter.py:1.2 configure.zcml:1.2 browser.py:NONE

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Aug 19 04:12:22 EDT 2003


Update of /cvs-repository/zopeproducts/oracleda
In directory cvs.zope.org:/tmp/cvs-serv17486/oracleda

Modified Files:
	adapter.py configure.zcml 
Removed Files:
	browser.py 
Log Message:
Updated all Database Adaptors.


=== zopeproducts/oracleda/adapter.py 1.1 => 1.2 ===
--- zopeproducts/oracleda/adapter.py:1.1	Mon Aug 11 04:43:41 2003
+++ zopeproducts/oracleda/adapter.py	Tue Aug 19 03:11:46 2003
@@ -15,11 +15,10 @@
 
 $Id$
 """
-
 import DCOracle2
 from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
 
-class oracleAdapter(ZopeDatabaseAdapter):
+class OracleAdapter(ZopeDatabaseAdapter):
     """An oracle adapter for Zope3"""
 
     def _connection_factory(self):


=== zopeproducts/oracleda/configure.zcml 1.1 => 1.2 ===
--- zopeproducts/oracleda/configure.zcml:1.1	Mon Aug 11 04:43:41 2003
+++ zopeproducts/oracleda/configure.zcml	Tue Aug 19 03:11:46 2003
@@ -1,40 +1,48 @@
 <configure
-    xmlns='http://namespaces.zope.org/zope'
-    xmlns:browser='http://namespaces.zope.org/browser'
-    i18n_domain="zopeproducts.oracleda">
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    i18n_domain="oracleda">
 
-    <content class=".adapter.oracleAdapter">
-        <implements 
-	    interface="zope.app.interfaces.annotation.IAttributeAnnotatable"/>
-        <factory id="oracleda" 
-		 permission="zope.Public" />
-        <require permission="zope.Public"
-                 interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter" />
-    </content>
+  <content class=".adapter.OracleAdapter">
+    <factory 
+        id="zope.da.oracleda" 
+    	permission="zope.Public" />
+    <require 
+        permission="zope.Public"
+        interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter" />
+  </content>
 
-    <browser:view
-        name="zopeproducts.oracleda"
-        for="zope.app.interfaces.container.IAdding"
-        class=".browser.AddView"
-        permission="zope.ManageServices">
-        <browser:page name="+" attribute="add" />
-        <browser:page name="action.html" attribute="action" />
-    </browser:view>
+  <browser:addform
+      name="AddOracleDA"
+      schema="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
+      label="Add Oracle Database Adapter"
+      content_factory=".adapter.OracleAdapter"
+      arguments="dsn"
+      fields="dsn"
+      permission="zope.ManageContent" />
 
-    <browser:menuItem 
-        menu="add_component"
-        for="zope.app.interfaces.container.IAdding"
-        title="Oracle DA" 
-        action="zopeproducts.oracleda"
-        description="An Oracle Database Adapter"/>
+  <!-- Menu entry for "add component" menu -->
+  <browser:menuItem 
+      menu="add_component"
+      for="zope.app.interfaces.container.IAdding"
+      title="Oracle DA"
+      description="An Oracle Database Adapter"
+      action="AddOracleDA" />
 
-    <!-- Menu entry for "add connection" menu -->
-    <browser:menuItem
-        menu="add_connection"
-        for="zope.app.interfaces.container.IAdding"
-        title="Oracle DA"
-        description="An Oracle Database Adapter"
-        action="zopeproducts.oracleda"/>
+  <!-- Menu entry for "add utility" menu -->
+  <browser:menuItem
+      menu="add_utility"
+      for="zope.app.interfaces.container.IAdding"
+      title="Oracle DA"
+      description="An Oracle Database Adapter"
+      action="AddOracleDA" />
 
+  <!-- Menu entry for "add connection" menu -->
+  <browser:menuItem
+      menu="add_connection"
+      for="zope.app.interfaces.container.IAdding"
+      title="Oracle DA"
+      description="An Oracle Database Adapter"
+      action="AddOracleDA" />
 
 </configure>

=== Removed File zopeproducts/oracleda/browser.py ===




More information about the Zope3-Checkins mailing list