[Zope3-checkins] CVS: Products3/sapdbDA/browser - __init__.py:1.1 configure.zcml:1.1 sapdbAddView.py:1.1
Christian Theune
ct@gocept.com
Thu, 12 Dec 2002 08:24:18 -0500
Update of /cvs-repository/Products3/sapdbDA/browser
In directory cvs.zope.org:/tmp/cvs-serv4450/sapdbDA/browser
Added Files:
__init__.py configure.zcml sapdbAddView.py
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/sapdbDA/browser/__init__.py ===
# make this a python package
=== Added File Products3/sapdbDA/browser/configure.zcml ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:browser='http://namespaces.zope.org/browser'
>
<browser:view
name="ZopeProducts.sapdbDA"
for="Zope.App.OFS.Container.IAdding."
factory=".sapdbAddView."
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="SAPDB DA" action="ZopeProducts.sapdbDA"
description="A SAPDB Database Adapter using the sapdbapi"/>
</zopeConfigure>
=== Added File Products3/sapdbDA/browser/sapdbAddView.py ===
from Zope.App.OFS.Services.ConnectionService.Views.Browser.AdapterAdd import \
AdapterAdd
class sapdbAddView(AdapterAdd):
"""Provide a user interface for adding a sapdb DA"""
_adapter_factory_id = "sapdbDA"