mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove obsolete CRUD base classes as they aren't used anymore.
This commit is contained in:
parent
34970fef5e
commit
6f37d139cb
@ -22,54 +22,6 @@ Base classes for standard CRUD operations.
|
||||
|
||||
import backend, frontend, parameters
|
||||
|
||||
class Add(frontend.Method):
|
||||
def get_args(self):
|
||||
yield self.obj.primary_key
|
||||
for arg in self.takes_args:
|
||||
yield arg
|
||||
|
||||
def get_options(self):
|
||||
for param in self.obj.params_minus_pk():
|
||||
yield param
|
||||
for option in self.takes_options:
|
||||
yield option
|
||||
|
||||
|
||||
class Get(frontend.Method):
|
||||
def get_args(self):
|
||||
yield self.obj.primary_key
|
||||
|
||||
|
||||
class Del(frontend.Method):
|
||||
def get_args(self):
|
||||
yield self.obj.primary_key
|
||||
|
||||
def get_options(self):
|
||||
for option in self.takes_options:
|
||||
yield option
|
||||
|
||||
|
||||
class Mod(frontend.Method):
|
||||
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, query=True)
|
||||
for option in self.takes_options:
|
||||
yield option
|
||||
|
||||
|
||||
class Find(frontend.Method):
|
||||
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, query=True)
|
||||
for option in self.takes_options:
|
||||
yield option
|
||||
|
||||
|
||||
class Create(frontend.Method):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user