[Zope3-checkins] CVS: zopeproducts/mysqldbda - configure.zcml:1.5
browser.py:NONE
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Aug 19 04:12:39 EDT 2003
Update of /cvs-repository/zopeproducts/mysqldbda
In directory cvs.zope.org:/tmp/cvs-serv17486/mysqldbda
Modified Files:
configure.zcml
Removed Files:
browser.py
Log Message:
Updated all Database Adaptors.
=== zopeproducts/mysqldbda/configure.zcml 1.4 => 1.5 ===
--- zopeproducts/mysqldbda/configure.zcml:1.4 Sun Aug 3 14:35:36 2003
+++ zopeproducts/mysqldbda/configure.zcml Tue Aug 19 03:11:34 2003
@@ -1,42 +1,41 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
- i18n_domain='mysqldbda'
- >
+ i18n_domain="mysqldbda">
-<content class=".adapter.MySQLdbAdapter">
- <factory
- id="mysqldbda"
- permission="zope.Public"
- />
- <require
- permission="zope.Public"
- interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
- />
- <implements
- interface="zope.app.interfaces.annotation.IAttributeAnnotatable"
- />
- <implements
- interface=
- "zope.app.interfaces.services.registration.IAttributeRegisterable"
- />
-</content>
+ <content class=".adapter.MySQLdbAdapter">
+ <factory
+ id="zope.da.mysqldbda"
+ permission="zope.Public" />
+ <require
+ permission="zope.Public"
+ interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter" />
+ </content>
- <browser:view
- name="zopeproducts.mysqldbda"
- for="zope.app.interfaces.container.IAdding"
- class="zopeproducts.mysqldbda.browser.MySQLdbAddView"
- permission="zope.ManageServices">
-
- <browser:page name="+" attribute="add" />
- <browser:page name="action.html" attribute="action" />
- </browser:view>
+ <browser:addform
+ name="AddMySQLDA"
+ schema="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
+ label="Add MySQL Database Adapter"
+ content_factory=".adapter.MySQLdbAdapter"
+ 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="MySQLdb DA" action="zopeproducts.mysqldbda"
- description="A MySQL Database Adapter using the mysql-db driver"/>
+ <browser:menuItem
+ menu="add_component"
+ for="zope.app.interfaces.container.IAdding"
+ title="MySQLdb DA"
+ description="A MySQL Database Adapter using the mysql-db driver"
+ action="AddMySQLDA" />
+
+ <!-- Menu entry for "add utility" menu -->
+ <browser:menuItem
+ menu="add_utility"
+ for="zope.app.interfaces.container.IAdding"
+ title="MySQLdb DA"
+ description="A MySQL Database Adapter using the mysql-db driver"
+ action="AddMySQLDA" />
<!-- Menu entry for "add connection" menu -->
<browser:menuItem
@@ -44,7 +43,6 @@
for="zope.app.interfaces.container.IAdding"
title="MySQLdb DA"
description="A MySQL Database Adapter using the mysql-db driver"
- action="zopeproducts.mysqldbda"
- />
+ action="AddMySQLDA" />
</configure>
=== Removed File zopeproducts/mysqldbda/browser.py ===
More information about the Zope3-Checkins
mailing list