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 ...@@ -194,13 +194,6 @@ m.DeferredConnection = DeferredConnection
del m del m
folder_methods={
'manage_addZMySQLConnection':
manage_addZMySQLConnection,
'manage_addZMySQLConnectionForm':
manage_addZMySQLConnectionForm,
}
__ac_permissions__=( __ac_permissions__=(
('Add Z MySQL Database Connections', ('Add Z MySQL Database Connections',
('manage_addZMySQLConnectionForm', ('manage_addZMySQLConnectionForm',
......
...@@ -89,20 +89,17 @@ __version__='$Revision: 1.4 $'[11:-2] ...@@ -89,20 +89,17 @@ __version__='$Revision: 1.4 $'[11:-2]
from . import DA from . import DA
methods=DA.folder_methods
misc_=DA.misc_ misc_=DA.misc_
def initialize(context): def initialize(context):
permission = "Add Z MySQL Database Connections"
context.registerClass( context.registerClass(
DA.Connection, DA.Connection,
permission=permission, permission="Add Z MySQL Database Connections",
constructors=(DA.manage_addZMySQLConnectionForm, constructors=(DA.manage_addZMySQLConnectionForm,
DA.manage_addZMySQLConnection), DA.manage_addZMySQLConnection),
) )
context.registerClass( import Products
DA.DeferredConnection, Products.meta_types += dict(Products.meta_types[-1],
permission=permission, name=DA.DeferredConnection.meta_type,
visibility=None, 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