From 66326bc3b9137c9fbdac0cba8dea041ababcebcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 8 Apr 2013 13:06:47 +0200 Subject: [PATCH] =?UTF-8?q?[filter/crans=5Futils]=20Commentaire=20au=20d?= =?UTF-8?q?=C3=A9but?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crans_utils.py | 5 +++-- filter.py | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/crans_utils.py b/crans_utils.py index 480d275..4aacd96 100644 --- a/crans_utils.py +++ b/crans_utils.py @@ -3,8 +3,9 @@ # # CRANS_UTILS.PY-- Utils for Cr@ns gestion # -# Copyright (c) 2010, Cr@ns -# Author: Antoine Durand-Gasselin +# Copyright (c) 2010-2013, Cr@ns +# Authors: Antoine Durand-Gasselin +# Pierre-Elliott Bécue # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/filter.py b/filter.py index 42b1a35..9696f70 100644 --- a/filter.py +++ b/filter.py @@ -1,5 +1,16 @@ #/usr/bin/env python # -*- coding: utf8 -*- +# +# filter.py --- Workaround with ldap filters +# +# Redraw filters like attr1=val1&attr2=val2|attr3=val3 +# in (|(&(attr1=val1)(attr2=val2))(attr3=val3)) +# +# Copyright (C) 2010-2013 Cr@ns +# Author: Pierre-Elliott Bécue +# +# +# License: WTFPL def human_to_ldap(filtre): """