mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
Relax restriction for leading/trailing whitespaces in *-find commands
All *-find commands now enable leading/trailing whitespaces in the search phrase. Behaviour has been implemented directly into crud.Search class. IPA_API_VERSION_MINOR incremented to 45. https://fedorahosted.org/freeipa/ticket/2981
This commit is contained in:
parent
4d6de44d3d
commit
7f27a18b51
6
API.txt
6
API.txt
@ -28,7 +28,7 @@ output: Output('result', <type 'bool'>, None)
|
||||
output: Output('value', <type 'unicode'>, None)
|
||||
command: aci_find
|
||||
args: 1,16,4
|
||||
arg: Str('criteria?')
|
||||
arg: Str('criteria?', noextrawhitespace=False)
|
||||
option: Str('aciname', attribute=False, autofill=False, cli_name='name', multivalue=False, primary_key=True, query=True, required=False)
|
||||
option: Str('permission', attribute=False, autofill=False, cli_name='permission', multivalue=False, query=True, required=False)
|
||||
option: Str('group', attribute=False, autofill=False, cli_name='group', multivalue=False, query=True, required=False)
|
||||
@ -570,7 +570,7 @@ output: Output('result', <type 'bool'>, None)
|
||||
output: Output('value', <type 'unicode'>, None)
|
||||
command: delegation_find
|
||||
args: 1,9,4
|
||||
arg: Str('criteria?')
|
||||
arg: Str('criteria?', noextrawhitespace=False)
|
||||
option: Str('aciname', attribute=True, autofill=False, cli_name='name', multivalue=False, primary_key=True, query=True, required=False)
|
||||
option: Str('permissions', attribute=True, autofill=False, cli_name='permissions', csv=True, multivalue=True, query=True, required=False)
|
||||
option: Str('attrs', attribute=True, autofill=False, cli_name='attrs', csv=True, multivalue=True, query=True, required=False)
|
||||
@ -2574,7 +2574,7 @@ output: Output('result', <type 'bool'>, None)
|
||||
output: Output('value', <type 'unicode'>, None)
|
||||
command: selfservice_find
|
||||
args: 1,7,4
|
||||
arg: Str('criteria?')
|
||||
arg: Str('criteria?', noextrawhitespace=False)
|
||||
option: Str('aciname', attribute=True, autofill=False, cli_name='name', multivalue=False, pattern='^[-_ a-zA-Z0-9]+$', primary_key=True, query=True, required=False)
|
||||
option: Str('permissions', attribute=True, autofill=False, cli_name='permissions', csv=True, multivalue=True, query=True, required=False)
|
||||
option: Str('attrs', attribute=True, autofill=False, cli_name='attrs', csv=True, multivalue=True, query=True, required=False)
|
||||
|
2
VERSION
2
VERSION
@ -89,4 +89,4 @@ IPA_DATA_VERSION=20100614120000
|
||||
# #
|
||||
########################################################
|
||||
IPA_API_VERSION_MAJOR=2
|
||||
IPA_API_VERSION_MINOR=46
|
||||
IPA_API_VERSION_MINOR=47
|
||||
|
@ -230,7 +230,7 @@ class Search(Method):
|
||||
has_output = output.standard_list_of_entries
|
||||
|
||||
def get_args(self):
|
||||
yield parameters.Str('criteria?')
|
||||
yield parameters.Str('criteria?', noextrawhitespace=False)
|
||||
|
||||
def get_options(self):
|
||||
if self.extra_options_first:
|
||||
|
Loading…
Reference in New Issue
Block a user