Пример #1
0
def exportLDAPUserFolder(context):
    """ Export LDAPUserFolder settings to an XML file
    """
    container = context.getSite()
    uf = getattr(aq_base(container), 'acl_users', None)

    if uf is not None and ILDAPUserFolder.providedBy(uf):
        exportObjects(uf, '', context)
    else:
        context.getLogger('ldapuserfolder').debug('Nothing to export.')
def exportLDAPUserFolder(context):
    """ Export LDAPUserFolder settings to an XML file
    """
    container = context.getSite()
    uf = getattr(aq_base(container), 'acl_users', None)

    if uf is not None and ILDAPUserFolder.providedBy(uf):
        exportObjects(uf, '', context)
    else:
        context.getLogger('ldapuserfolder').debug('Nothing to export.')
Пример #3
0
def importLDAPUserFolder(context):
    """ Import LDAPUserFolder settings from an XML file

    When using this step directly, the user folder is expected to reside
    at the same level in the object hierarchy where the setup tool is.
    """
    container = context.getSite()
    uf = getattr(aq_base(container), 'acl_users', None)

    if uf is not None and ILDAPUserFolder.providedBy(uf):
        importObjects(uf, '', context)
    else:
        context.getLogger('ldapuserfolder').debug('Nothing to import.')
def importLDAPUserFolder(context):
    """ Import LDAPUserFolder settings from an XML file

    When using this step directly, the user folder is expected to reside
    at the same level in the object hierarchy where the setup tool is.
    """
    container = context.getSite()
    uf = getattr(aq_base(container), 'acl_users', None)

    if uf is not None and ILDAPUserFolder.providedBy(uf):
        importObjects(uf, '', context)
    else:
        context.getLogger('ldapuserfolder').debug('Nothing to import.')