1 # ZPsycopgDA/__init__.py - ZPsycopgDA Zope product
3 # Copyright (C) 2004 Federico Di Gregorio <fog@initd.org>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2, or (at your option) any later
10 # Or, at your option this program (ZPsycopgDA) can be distributed under the
11 # Zope Public License (ZPL) Version 1.0, as published on the Zope web site,
12 # http://www.zope.org/Resources/ZPL.
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY
16 # or FITNESS FOR A PARTICULAR PURPOSE.
18 # See the LICENSE file for details.
20 __doc__ = "ZPsycopg Database Adapter Registration."
25 def initialize(context):
26 context.registerClass(
28 permission = 'Add Z Psycopg 2 Database Connections',
29 constructors = (DA.manage_addZPsycopgConnectionForm,
30 DA.manage_addZPsycopgConnection),
31 icon = SOFTWARE_HOME + '/Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif')