small release fixes:

- Make password not required for add person
- Fix for searching on '*' or ''
This commit is contained in:
Kevin McCarthy
2007-09-07 11:07:59 -07:00
parent c821699b64
commit 78bcc22c40
2 changed files with 3 additions and 3 deletions

View File

@@ -26,8 +26,8 @@ class UserFields():
class UserNewValidator(validators.Schema):
uid = validators.PlainText(not_empty=True)
userpassword = validators.String(not_empty=True)
userpassword_confirm = validators.String(not_empty=True)
userpassword = validators.String(not_empty=False)
userpassword_confirm = validators.String(not_empty=False)
givenname = validators.String(not_empty=True)
sn = validators.String(not_empty=True)
mail = validators.Email(not_empty=True)

View File

@@ -426,7 +426,7 @@ class IPAServer:
criteria_words = re.split(r'\s+', criteria)
criteria_words = filter(lambda value:value!="", criteria_words)
if len(criteria_words) == 0:
return []
return [0]
(exact_match_filter, partial_match_filter) = self.__generate_match_filters(
search_fields, criteria_words)