[Zope3-checkins] CVS: zopeproducts/psycopgda - configure.zcml:1.6
browser.py:NONE
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Aug 19 04:12:24 EDT 2003
Update of /cvs-repository/zopeproducts/psycopgda
In directory cvs.zope.org:/tmp/cvs-serv17486/psycopgda
Modified Files:
configure.zcml
Removed Files:
browser.py
Log Message:
Updated all Database Adaptors.
=== zopeproducts/psycopgda/configure.zcml 1.5 => 1.6 ===
--- zopeproducts/psycopgda/configure.zcml:1.5 Sun Aug 3 14:35:40 2003
+++ zopeproducts/psycopgda/configure.zcml Tue Aug 19 03:11:49 2003
@@ -1,57 +1,47 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
- i18n_domain='psycopgda'
- >
+ i18n_domain="psycopgda">
<content class=".adapter.PsycopgAdapter">
<factory
- id="PsycopgDA"
+ id="zope.da.PsycopgDA"
+ permission="zope.Public" />
+ <require
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"
- />
-
+ interface="zope.app.interfaces.rdb.IZopeDatabaseAdapter"/>
</content>
- <!-- Browser-specific directives -->
- <browser:view
- name="zopeproducts.psycopgda"
- for="zope.app.interfaces.container.IAdding"
- class=
- "zopeproducts.psycopgda.browser.PsycopgDAAddView"
- permission="zope.Public">
-
- <browser:page name="+" attribute="add" />
- <browser:page name="action.html" attribute="action" />
- </browser:view>
+ <browser:addform
+ name="AddPsycopgDA"
+ schema="zope.app.interfaces.rdb.IZopeDatabaseAdapter"
+ label="Add Psycopg (PostGreSQL) Database Adapter"
+ content_factory=".adapter.PsycopgAdapter"
+ 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="Psycopg DA"
description="A PostgreSQL Database Adapter using the Psycopg driver"
- action="zopeproducts.psycopgda"
- />
+ action="AddPsycopgDA" />
+
+ <!-- Menu entry for "add utility" menu -->
+ <browser:menuItem
+ menu="add_utility"
+ for="zope.app.interfaces.container.IAdding"
+ title="Psycopg DA"
+ description="A PostgreSQL Database Adapter using the Psycopg driver"
+ action="AddPsycopgDA" />
<!-- Menu entry for "add connection" menu -->
<browser:menuItem
- menu="add_connection"
- for="zope.app.interfaces.container.IAdding"
- title="Psycopg DA"
- description="A PostgreSQL Database Adapter using the Psycopg driver"
- action="zopeproducts.psycopgda"
- />
+ menu="add_connection"
+ for="zope.app.interfaces.container.IAdding"
+ title="Psycopg DA"
+ description="A PostgreSQL Database Adapter using the Psycopg driver"
+ action="AddPsycopgDA"/>
</configure>
=== Removed File zopeproducts/psycopgda/browser.py ===
More information about the Zope3-Checkins
mailing list