__init__.py 643 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
"""LDAP Filter Methods Package """

import LM

def initialize(context):

    context.registerClass(
        LM.LDAPMethod,
        constructors = (LM.manage_addZLDAPMethodForm,
                        LM.manage_addZLDAPMethod),
        icon = "LDAP_Method_icon.gif",
        legacy = (LM.LDAPConnectionIDs,), #special baby to add to ObjectManagers
        )

    context.registerClass(
        LM.LDIFMethod,
        constructors = (LM.manage_addZLDIFMethodForm,
                        LM.manage_addZLDIFMethod),
        icon = "LDAP_Method_icon.gif",
        legacy = (LM.LDAPConnectionIDs,), #special baby to add to ObjectManagers
        )