summaryrefslogtreecommitdiffstats
path: root/ipa-server/xmlrpc-server
diff options
context:
space:
mode:
authorKevin McCarthy <kmccarth@redhat.com>2007-09-27 15:51:26 -0700
committerKevin McCarthy <kmccarth@redhat.com>2007-09-27 15:51:26 -0700
commit572b3e9fddfb2eecf1334099d4c73cfe4c0b3a56 (patch)
treeadbfc03b8a4095814691e36240f094029c86d6f3 /ipa-server/xmlrpc-server
parentd95b47232de2e94e5523337e0f6b744e49061857 (diff)
downloadfreeipa-572b3e9fddfb2eecf1334099d4c73cfe4c0b3a56.tar.gz
freeipa-572b3e9fddfb2eecf1334099d4c73cfe4c0b3a56.tar.xz
freeipa-572b3e9fddfb2eecf1334099d4c73cfe4c0b3a56.zip
Make timelimit a parameter to the find methods.
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r--ipa-server/xmlrpc-server/funcs.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py
index 8506111b2..7c9d06fcf 100644
--- a/ipa-server/xmlrpc-server/funcs.py
+++ b/ipa-server/xmlrpc-server/funcs.py
@@ -448,13 +448,11 @@ class IPAServer:
return users
- def find_users (self, criteria, sattrs=None, searchlimit=0, opts=None):
+ def find_users (self, criteria, sattrs=None, searchlimit=0, timelimit=-1,
+ opts=None):
"""Returns a list: counter followed by the results.
If the results are truncated, counter will be set to -1."""
- # TODO - retrieve from config
- timelimit = 2
-
# Assume the list of fields to search will come from a central
# configuration repository. A good format for that would be
# a comma-separated list of fields
@@ -664,14 +662,12 @@ class IPAServer:
finally:
self.releaseConnection(conn)
- def find_groups (self, criteria, sattrs=None, searchlimit=0, opts=None):
+ def find_groups (self, criteria, sattrs=None, searchlimit=0, timelimit=-1,
+ opts=None):
"""Return a list containing a User object for each
existing group that matches the criteria.
"""
- # TODO - retrieve from config
- timelimit = 2
-
# Assume the list of fields to search will come from a central
# configuration repository. A good format for that would be
# a comma-separated list of fields