[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB/GadflyDA/Views/Browser - GadflyDAAddView.py:1.1 __init__.py:1.1 configure.zcml:1.1

Albertas Agejevas alga@codeworks.lt
Tue, 5 Nov 2002 12:34:41 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/RDB/GadflyDA/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv8544/GadflyDA/Views/Browser

Added Files:
	GadflyDAAddView.py __init__.py configure.zcml 
Log Message:
Added Gadfly DA which was previously in an incorrect CVS module.

Small cleanups (the tests now use a temp directory for creating databases).

Oh, this move is based an agreement between Jim and Stephan Richter that
GadflyDA belongs as a default "batteries included" adapter in Zope3.


=== Added File Zope3/lib/python/Zope/App/RDB/GadflyDA/Views/Browser/GadflyDAAddView.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: GadflyDAAddView.py,v 1.1 2002/11/05 17:34:39 alga Exp $
"""
from Zope.App.OFS.Services.ConnectionService.Views.Browser.AdapterAdd import \
     AdapterAdd
from Zope.App.OFS.Container.IAdding import IAdding


class GadflyDAAddView(AdapterAdd):
    """Provide a user interface for adding a Gadfly DA"""
    
    # This needs to be overridden by the actual implementation
    _adapter_factory_id = "GadflyDA"



=== Added File Zope3/lib/python/Zope/App/RDB/GadflyDA/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 Zope3/lib/python/Zope/App/RDB/GadflyDA/Views/Browser/configure.zcml ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:browser='http://namespaces.zope.org/browser'
>

<browser:view
    name="Zope.App.RDB.GadflyDA"
    for="Zope.App.OFS.Container.IAdding."
    factory=".GadflyDAAddView."
    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="Gadfly DA" 
    action="Zope.App.RDB.GadflyDA"
    description="A Gadfly Database Adapter"/>

</zopeConfigure>