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

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


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

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


=== zopeproducts/sybaseda/adapter.py 1.1 => 1.2 ===
--- zopeproducts/sybaseda/adapter.py:1.1	Mon Aug 11 03:23:24 2003
+++ zopeproducts/sybaseda/adapter.py	Tue Aug 19 03:12:15 2003
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 import Sybase 
 
 from zope.app.rdb import ZopeDatabaseAdapter, parseDSN


=== zopeproducts/sybaseda/configure.zcml 1.2 => 1.3 ===
--- zopeproducts/sybaseda/configure.zcml:1.2	Mon Aug 11 04:48:39 2003
+++ zopeproducts/sybaseda/configure.zcml	Tue Aug 19 03:12:15 2003
@@ -1,56 +1,47 @@
 <zopeConfigure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
-   i18n_domain="zopeproducts.sybaseda">
+   i18n_domain="sybaseda">
 
     <content class=".adapter.SybaseAdapter">
-
-        <factory
-            id="SybaseDA"
-            permission="zope.Public"
-            />
-
-        <implements
-            interface="zope.app.interfaces.annotation.IAttributeAnnotatable"
-            />
-        <implements
-            interface=
-            "zope.app.interfaces.services.registration.IAttributeRegisterable"
-            />
-
-        <require permission="zope.Public"
-            interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
-            />
-
+      <factory
+          id="SybaseDA"
+          permission="zope.Public" />
+      <require permission="zope.Public"
+          interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter" />
     </content>
 
-     <!-- Browser-specific directives -->
-    <browser:view
-        name="zopeproducts.sybaseda"
-        for="zope.app.interfaces.container.IAdding"
-        class="zopeproducts.sybaseda.browser.SybaseDAAddView"
-        permission="zope.Public">
-
-        <browser:page name="+" attribute="add" />
-        <browser:page name="action.html" attribute="action" />
-
-    </browser:view>
-
-    <!-- Menu entry for "add component" menu -->
-    <browser:menuItem 
-        menu="add_component"
-        for="zope.app.interfaces.container.IAdding"
-        title="Sybase DA" 
-        action="zopeproducts.sybaseda"
-        description="A Sybase Database Adapter" />
-
-    <!-- Menu entry for "add connection" menu -->
-    <browser:menuItem
-        menu="add_connection"
-        for="zope.app.interfaces.container.IAdding"
-        title="Sybase DA"
-        description="A Sybase Database Adapter using the Sybase driver"
-        action="zopeproducts.sybaseda"
-        />
+  <browser:addform
+      name="AddSybaseDA"
+      schema="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
+      label="Add Sybase Database Adapter"
+      content_factory=".adapter.SybaseAdapter"
+      arguments="dsn"
+      fields="dsn"
+      permission="zope.ManageContent" />
+
+  <!-- Menu entry for "add component" menu -->
+  <browser:menuItem 
+      menu="add_component"
+      for="zope.app.interfaces.container.IAdding"
+      title="Sybase DA"
+      description="A Sybase Database Adapter using the Sybase driver"
+      action="AddSybaseDA" />
+
+  <!-- Menu entry for "add utility" menu -->
+  <browser:menuItem
+      menu="add_utility"
+      for="zope.app.interfaces.container.IAdding"
+      title="Sybase DA"
+      description="A Sybase Database Adapter using the Sybase driver"
+      action="AddSybaseDA" />
+
+  <!-- Menu entry for "add connection" menu -->
+  <browser:menuItem
+      menu="add_connection"
+      for="zope.app.interfaces.container.IAdding"
+      title="Sybase DA"
+      description="A Sybase Database Adapter using the Sybase driver"
+      action="AddSybaseDA" />
 
 </zopeConfigure>

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




More information about the Zope3-Checkins mailing list