[Zope-CVS] CVS: Packages/PsycopgDA/Views/Browser - PsycopgDAAddView.py:1.1 __init__.py:1.1 configure.zcml:1.1
Stephan Richter
srichter@cbu.edu
Wed, 10 Jul 2002 22:01:50 -0400
Update of /cvs-repository/Packages/PsycopgDA/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv9591/Views/Browser
Added Files:
PsycopgDAAddView.py __init__.py configure.zcml
Log Message:
Initial implementation of Psycopg DA.
=== Added File Packages/PsycopgDA/Views/Browser/PsycopgDAAddView.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""
$Id: PsycopgDAAddView.py,v 1.1 2002/07/11 02:01:49 srichter Exp $
"""
from Zope.App.OFS.Services.ConnectionService.Views.Browser.AdapterAdd import \
AdapterAdd
from Zope.App.OFS.Container.IAdding import IAdding
class PsycopgDAAddView(AdapterAdd):
"""Provide a user interface for adding a Psycopg DA"""
# This needs to be overridden by the actual implementation
_adapter_factory_id = "PsycopgDA"
=== Added File Packages/PsycopgDA/Views/Browser/__init__.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
=== Added File Packages/PsycopgDA/Views/Browser/configure.zcml ===
<zopeConfigure
xmlns='http://namespaces.zope.org/zope'
xmlns:browser='http://namespaces.zope.org/browser'
>
<browser:view
name="ZopeProducts.PsycopgDA"
for="Zope.App.OFS.Container.IAdding."
factory=".PsycopgDAAddView."
permission="Zope.Public">
<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="Psycopg DA" action="ZopeProducts.PsycopgDA"
description="A PostgreSQL Database Adapter using the Psycopg driver"/>
</zopeConfigure>