Some minor fixes for Zope 2.4

This commit is contained in:
adustman
2001-06-26 03:24:54 +00:00
parent fa43614411
commit 7287d7389e
3 changed files with 36 additions and 2 deletions

View File

@@ -1 +1 @@
ZMySQLDA 2.0.8a1
ZMySQLDA 2.0.8b1

View File

@@ -102,7 +102,6 @@ def initialize(context):
DA.Connection,
permission='Add Z MySQL Database Connections',
constructors=(DA.manage_addZMySQLConnectionForm,),
icon='misc_/ZMySQLDA/conn',
)
context.registerHelp()

View File

@@ -0,0 +1,35 @@
def manage_addZMySQLConnection(self, id, title,
connection_string,
check=None, REQUEST=None):
"""Add a MySQL connection to a folder.
Arguments:
REQUEST -- The current request
title -- The title of the ZMySQLDA Connection (string)
id -- The id of the ZMySQLDA Connection (string)
connection_string -- The connection string is of the form:
'database[@host[:port]] [user [password [unix_socket]]]'
or typically:
'database user password'
to use a MySQL server on localhost via the standard UNIX socket.
Only specify host if the server is on a remote system. You can
use a non-standard port, if necessary. If the UNIX socket is in
a non-standard location, you can specify the full path to it
after the password.
"""
class Connection:
"""MySQL Connection Object"""
__constructor__ = manage_addZMySQLConnection