2004-10-29 20:15:45 +04:00
|
|
|
# ZPsycopgDA/__init__.py - ZPsycopgDA Zope product
|
|
|
|
#
|
|
|
|
# Copyright (C) 2004 Federico Di Gregorio <fog@initd.org>
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by the
|
|
|
|
# Free Software Foundation; either version 2, or (at your option) any later
|
|
|
|
# version.
|
|
|
|
#
|
|
|
|
# Or, at your option this program (ZPsycopgDA) can be distributed under the
|
|
|
|
# Zope Public License (ZPL) Version 1.0, as published on the Zope web site,
|
|
|
|
# http://www.zope.org/Resources/ZPL.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
|
|
|
|
# or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
#
|
|
|
|
# See the LICENSE file for details.
|
2004-10-19 07:17:12 +04:00
|
|
|
|
2005-11-16 16:47:11 +03:00
|
|
|
__doc__ = "ZPsycopg Database Adapter Registration."
|
2004-10-29 20:15:45 +04:00
|
|
|
__version__ = '2.0'
|
2004-10-19 07:17:12 +04:00
|
|
|
|
|
|
|
import DA
|
|
|
|
|
2004-10-29 20:15:45 +04:00
|
|
|
methods = DA.folder_methods
|
|
|
|
classes = DA.classes
|
|
|
|
meta_types = DA.meta_types
|
|
|
|
misc_ = DA.misc_
|
2004-10-19 07:17:12 +04:00
|
|
|
|
2005-11-15 14:51:05 +03:00
|
|
|
__ac_permissions__ = DA.__ac_permissions__
|
2005-05-26 11:34:27 +04:00
|
|
|
|
2005-11-15 14:51:05 +03:00
|
|
|
# FIXME: isn't this crazy? Apparently the variables above are enough
|
|
|
|
# to have the ZPsycopgDA product installed and working. :/
|
|
|
|
#
|
|
|
|
#def initialize(context):
|
|
|
|
# context.registerClass(
|
|
|
|
# DA.Connection,
|
|
|
|
# permission = 'Add Z Psycopg 2 Database Connections',
|
|
|
|
# constructors = (DA.manage_addZPsycopgConnectionForm,
|
|
|
|
# DA.manage_addZPsycopgConnection),
|
|
|
|
# icon = SOFTWARE_HOME + '/Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif')
|