[Zope3-checkins] CVS: Products3/sybaseDA/browser - AddView.py:1.1 __init__.py:1.1 configure.zcml:1.1

Christian Theune ct@gocept.com
Thu, 12 Dec 2002 08:24:19 -0500


Update of /cvs-repository/Products3/sybaseDA/browser
In directory cvs.zope.org:/tmp/cvs-serv4450/sybaseDA/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/sybaseDA/browser/AddView.py ===
from Zope.App.OFS.Services.ConnectionService.Views.Browser.AdapterAdd import \
    AdapterAdd

class AddView(AdapterAdd):
      """Provide a user interface for adding a sybase DA"""
      _adapter_factory_id = "sybaseDA"


=== Added File Products3/sybaseDA/browser/__init__.py ===
# make this a python package


=== Added File Products3/sybaseDA/browser/configure.zcml ===
<zopeConfigure
  xmlns='http://namespaces.zope.org/zope'
  xmlns:browser='http://namespaces.zope.org/browser'
>

<browser:view
  name="ZopeProducts.sybaseDA"
  for="Zope.App.OFS.Container.IAdding."
  factory=".sybaseAddView."
  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="Sybase DA" action="ZopeProducts.sybaseDA"
   description="A Sybase Database Adapter"/>

</zopeConfigure>