[Zope-CVS] CVS: Packages/GadflyDA/Views/Browser - GadflyDAAddView.py:1.1 __init__.py:1.1 configure.zcml:1.1

Albertas Agejevas alga@codeworks.lt
Wed, 7 Aug 2002 06:54:18 -0400


Update of /cvs-repository/Packages/GadflyDA/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv15715/Views/Browser

Added Files:
	GadflyDAAddView.py __init__.py configure.zcml 
Log Message:
Initial implementation of Gadfly DA.
Includes the patched gadfly version from Zope 2 ZGadflyDA

=== Added File Packages/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/08/07 10:54:17 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 Packages/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 Packages/GadflyDA/Views/Browser/configure.zcml ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:browser='http://namespaces.zope.org/browser'
>

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

</zopeConfigure>