Change signature of LDAPSearch.pre_callback.

Add the opportunity to change base DN and scope in the callback.
This commit is contained in:
Pavel Zuna
2010-11-23 21:29:08 -05:00
committed by Adam Young
parent 6d51a48af8
commit 5060fdfade
6 changed files with 30 additions and 18 deletions
+10
View File
@@ -109,6 +109,16 @@ class plugins(LocalOrRemote):
'%(count)d plugin loaded', '%(count)d plugins loaded'
)
takes_options = LocalOrRemote.takes_options + (
Flag('all',
cli_name='all',
doc=_('retrieve and print all attributes from the server. Affects command output.'),
exclude='webui',
flags=['no_output'],
default=True,
),
)
has_output = (
Output('result', dict, 'Dictionary mapping plugin names to bases'),
Output('count',