summaryrefslogtreecommitdiffstats
path: root/ipalib/crud.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-09-25 23:53:53 -0400
committerJason Gerard DeRose <jderose@redhat.com>2008-09-30 19:37:35 -0600
commitb965e558b5def14c6416beb36dc790cca96c3724 (patch)
tree6f1c0097f46b19f7a8fd2b76763d783c36813fd1 /ipalib/crud.py
parentafdc72103847fc27efd00f8cc97a7320909ff6a0 (diff)
downloadfreeipa-b965e558b5def14c6416beb36dc790cca96c3724.tar.gz
freeipa-b965e558b5def14c6416beb36dc790cca96c3724.tar.xz
freeipa-b965e558b5def14c6416beb36dc790cca96c3724.zip
Rebase XML-RPC client and server
Fix error handling in server to return exceptions generated in library code
Diffstat (limited to 'ipalib/crud.py')
-rw-r--r--ipalib/crud.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipalib/crud.py b/ipalib/crud.py
index 5021d06da..813e0c814 100644
--- a/ipalib/crud.py
+++ b/ipalib/crud.py
@@ -25,8 +25,12 @@ import frontend, errors
class Add(frontend.Method):
+ def get_args(self):
+ yield self.obj.primary_key
+
def get_options(self):
- return self.obj.params()
+ for param in self.obj.params_minus_pk():
+ yield param.__clone__(required=False)
class Get(frontend.Method):