On gère l'encodage via config

This commit is contained in:
Pierre-Elliott Bécue 2015-08-22 05:12:20 +02:00
parent 2bc93d071b
commit 36a299caa8

View file

@ -9,12 +9,13 @@ import sys
import argparse import argparse
from ldap import SIZELIMIT_EXCEEDED from ldap import SIZELIMIT_EXCEEDED
from gestion.config import encoding
import lc_ldap.shortcuts import lc_ldap.shortcuts
import lc_ldap.objets import lc_ldap.objets
import lc_ldap.filter2 as lfilter import lc_ldap.filter2 as lfilter
import lc_ldap.crans_utils import lc_ldap.crans_utils
ENCODING = "utf-8" ENCODING = encoding.in_encoding
def explore_db(args): def explore_db(args):
"""Utilise le contenu de args pour décider comment explorer la base de données.""" """Utilise le contenu de args pour décider comment explorer la base de données."""