2004-10-29 20:15:45 +04:00
|
|
|
# ZPsycopgDA/__init__.py - ZPsycopgDA Zope product
|
|
|
|
#
|
2010-02-13 01:34:53 +03:00
|
|
|
# Copyright (C) 2004-2010 Federico Di Gregorio <fog@debian.org>
|
2004-10-29 20:15:45 +04:00
|
|
|
#
|
2010-02-13 01:34:53 +03:00
|
|
|
# psycopg2 is free software: you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published
|
|
|
|
# by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
2004-10-29 20:15:45 +04:00
|
|
|
#
|
2010-02-13 01:34:53 +03:00
|
|
|
# psycopg2 is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
|
|
# License for more details.
|
|
|
|
|
|
|
|
# Import modules needed by _psycopg to allow tools like py2exe to do
|
|
|
|
# their work without bothering about the module dependencies.
|
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
|
|
|
|
|
2006-06-08 03:33:47 +04:00
|
|
|
def initialize(context):
|
|
|
|
context.registerClass(
|
|
|
|
DA.Connection,
|
|
|
|
permission = 'Add Z Psycopg 2 Database Connections',
|
|
|
|
constructors = (DA.manage_addZPsycopgConnectionForm,
|
|
|
|
DA.manage_addZPsycopgConnection),
|
2011-01-14 04:18:05 +03:00
|
|
|
icon = 'icons/DBAdapterFolder_icon.gif')
|