mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
364: Implemented Mod.get_args, Mod.get_options(); added corresponding unit tests
This commit is contained in:
@@ -26,7 +26,6 @@ import frontend, errors
|
||||
|
||||
class Add(frontend.Method):
|
||||
def get_options(self):
|
||||
assert 'params' in self.obj, list(self.obj)
|
||||
return self.obj.params()
|
||||
|
||||
|
||||
@@ -41,7 +40,13 @@ class Del(frontend.Method):
|
||||
|
||||
|
||||
class Mod(frontend.Method):
|
||||
pass
|
||||
def get_args(self):
|
||||
yield self.obj.primary_key
|
||||
|
||||
def get_options(self):
|
||||
for param in self.obj.params_minus_pk():
|
||||
yield param.__clone__(required=False)
|
||||
|
||||
|
||||
|
||||
class Find(frontend.Method):
|
||||
|
||||
Reference in New Issue
Block a user