Commit 2fc40827 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

Les macros nécessitent args en argument pour fonctionner.

parent c108165f
......@@ -69,7 +69,7 @@ def search_ldap(args, ldap):
search_filter = lfilter.human_to_ldap(args.filtre.decode(ENCODING))
if args.macro_filtre:
search_filter = filter_macro(search_filter)
search_filter = filter_macro(search_filter, args)
elif args.wild and '=' not in search_filter:
search_filter = wild_search_filter(search_filter)
......@@ -108,7 +108,7 @@ def macro_expand(data, args):
return new_data
def filter_macro(filtre):
def filter_macro(filtre, args):
"""Étend les macros du filtre passé en argument"""
thetime = lc_ldap.crans_utils.to_generalized_time_format(time.time())
......
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