[Zope3-checkins] CVS: Products3/mysqldbda - configure.zcml:1.2
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 1 Jul 2003 15:05:46 -0400
Update of /cvs-repository/Products3/mysqldbda
In directory cvs.zope.org:/tmp/cvs-serv24942
Modified Files:
configure.zcml
Log Message:
Fix MySQLdb DA registration so it does appear on the SQLConnections service add list
=== Products3/mysqldbda/configure.zcml 1.1 => 1.2 ===
--- Products3/mysqldbda/configure.zcml:1.1 Thu Jun 5 12:42:32 2003
+++ Products3/mysqldbda/configure.zcml Tue Jul 1 15:05:46 2003
@@ -2,26 +2,47 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser">
- <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." />
- </content>
+<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>
<browser:view
name="zopeproducts.mysqldbda"
for="zope.app.interfaces.container.IAdding."
class="zopeproducts.mysqldbda.browser.MySQLdbAddView"
- permission="zope.Public">
+ permission="zope.ManageServices">
<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="MySQLdb DA" action="zopeproducts.mysqldbda"
description="A MySQL Database Adapter using the mysql-db driver"/>
+
+ <!-- Menu entry for "add connection" menu -->
+ <browser:menuItem
+ menu="add_connection"
+ for="zope.app.interfaces.container.IAdding"
+ title="MySQLdb DA"
+ description="A MySQL Database Adapter using the mysql-db driver"
+ action="zopeproducts.mysqldbda"
+ />
</zopeConfigure>