...
[plcapi.git] / psycopg2 / ZPsycopgDA / __init__.py
1 # ZPsycopgDA/__init__.py - ZPsycopgDA Zope product
2 #
3 # Copyright (C) 2004 Federico Di Gregorio <fog@initd.org>
4 #
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
8 # version.
9 #
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.
13 #
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.
17 #
18 # See the LICENSE file for details.
19
20 __doc__ = "ZPsycopg Database Adapter Registration." 
21 __version__ = '2.0'
22
23 import DA
24
25 def initialize(context):
26     context.registerClass(
27         DA.Connection,
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')