[Zope3-checkins] CVS: Products3/oracleDA/browser - AddView.py:1.1 __init__.py:1.1 configure.zcml:1.1
Christian Theune
ct@gocept.com
Thu, 12 Dec 2002 08:24:17 -0500
Update of /cvs-repository/Products3/oracleDA/browser
In directory cvs.zope.org:/tmp/cvs-serv4450/oracleDA/browser
Added Files:
AddView.py __init__.py configure.zcml
Log Message:
initial checkin for the "database adapter collection"
those are initial drafts. The mysql adapter is tested and able to connect and query
as well as the sapdb. Postgres has already been there.
There will be a lot of issues with converting custom data types into
the zopish ones (see BLOB/CLOB...).
The other database adapters aren't tested anyway, but probably work,
as it has mostly been an "edit and replace" work.
(Is that a sign of refactoring?)
=== Added File Products3/oracleDA/browser/AddView.py ===
from Zope.App.OFS.Services.ConnectionService.Views.Browser.AdapterAdd import \
AdapterAdd
class AddView(AdapterAdd):
"""Provide a user interface for adding an oracle DA"""
_adapter_factory_id = "oracleDA"
=== Added File Products3/oracleDA/browser/__init__.py ===
# make this a python package
=== Added File Products3/oracleDA/browser/configure.zcml ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:browser='http://namespaces.zope.org/browser'
>
<browser:view
name="ZopeProducts.oracleDA"
for="Zope.App.OFS.Container.IAdding."
factory=".AddView."
permission="Zope.ManageServices">
<browser:page name="+" attribute="add" />
<browser:page name="action.html" attribute="action" />
</browser:view>
<browser:menuItem menu="add_connection"
for="Zope.App.OFS.Container.IAdding."
title="Oracle DA" action="ZopeProducts.oracleDA"
description="An Oracle Database Adapter"/>
</zopeConfigure>