DABase.py 1.03 KB
Newer Older
Jean-Paul Smets's avatar
Jean-Paul Smets committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
def manage_addZMySQLDeferredConnection(self, id, title,
                                connection_string,
                                check=None, REQUEST=None):
    """Add a MySQL deferred 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 DeferredConnection:
    """MySQL Deferred Connection Object"""

Yoshinori Okuji's avatar
Yoshinori Okuji committed
33
    __constructor__ = manage_addZMySQLDeferredConnection
Jean-Paul Smets's avatar
Jean-Paul Smets committed
34 35