From 7287d7389e7d7b6467262329ab41868e4a7259ed Mon Sep 17 00:00:00 2001 From: adustman Date: Tue, 26 Jun 2001 03:24:54 +0000 Subject: [PATCH] Some minor fixes for Zope 2.4 --- .../lib/python/Products/ZMySQLDA/VERSION.txt | 2 +- .../lib/python/Products/ZMySQLDA/__init__.py | 1 - .../python/Products/ZMySQLDA/help/DABase.py | 35 +++++++++++++++++++ 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 ZMySQLDA/lib/python/Products/ZMySQLDA/help/DABase.py diff --git a/ZMySQLDA/lib/python/Products/ZMySQLDA/VERSION.txt b/ZMySQLDA/lib/python/Products/ZMySQLDA/VERSION.txt index caf18db..ffad2b8 100644 --- a/ZMySQLDA/lib/python/Products/ZMySQLDA/VERSION.txt +++ b/ZMySQLDA/lib/python/Products/ZMySQLDA/VERSION.txt @@ -1 +1 @@ -ZMySQLDA 2.0.8a1 +ZMySQLDA 2.0.8b1 diff --git a/ZMySQLDA/lib/python/Products/ZMySQLDA/__init__.py b/ZMySQLDA/lib/python/Products/ZMySQLDA/__init__.py index e1dcd91..681478b 100644 --- a/ZMySQLDA/lib/python/Products/ZMySQLDA/__init__.py +++ b/ZMySQLDA/lib/python/Products/ZMySQLDA/__init__.py @@ -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() diff --git a/ZMySQLDA/lib/python/Products/ZMySQLDA/help/DABase.py b/ZMySQLDA/lib/python/Products/ZMySQLDA/help/DABase.py new file mode 100644 index 0000000..b793b6f --- /dev/null +++ b/ZMySQLDA/lib/python/Products/ZMySQLDA/help/DABase.py @@ -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 + +