mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Some minor fixes for Zope 2.4
This commit is contained in:
@@ -1 +1 @@
|
||||
ZMySQLDA 2.0.8a1
|
||||
ZMySQLDA 2.0.8b1
|
||||
|
||||
@@ -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()
|
||||
|
||||
35
ZMySQLDA/lib/python/Products/ZMySQLDA/help/DABase.py
Normal file
35
ZMySQLDA/lib/python/Products/ZMySQLDA/help/DABase.py
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user