Commit 515443d4 authored by Julien Muchembled's avatar Julien Muchembled

ZMySQLDA: really fix copy & paste of deferred connection

See commit 1472c7e9

Also remove deprecated 'methods' Product attribute.
parent a88c5183
......@@ -194,13 +194,6 @@ m.DeferredConnection = DeferredConnection
del m
folder_methods={
'manage_addZMySQLConnection':
manage_addZMySQLConnection,
'manage_addZMySQLConnectionForm':
manage_addZMySQLConnectionForm,
}
__ac_permissions__=(
('Add Z MySQL Database Connections',
('manage_addZMySQLConnectionForm',
......
......@@ -89,20 +89,17 @@ __version__='$Revision: 1.4 $'[11:-2]
from . import DA
methods=DA.folder_methods
misc_=DA.misc_
def initialize(context):
permission = "Add Z MySQL Database Connections"
context.registerClass(
DA.Connection,
permission=permission,
permission="Add Z MySQL Database Connections",
constructors=(DA.manage_addZMySQLConnectionForm,
DA.manage_addZMySQLConnection),
)
context.registerClass(
DA.DeferredConnection,
permission=permission,
visibility=None,
)
import Products
Products.meta_types += dict(Products.meta_types[-1],
name=DA.DeferredConnection.meta_type,
action=None),
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment