diff options
author | Adrian Likins <alikins@redhat.com> | 2008-03-28 17:06:10 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-03-28 17:06:10 -0400 |
commit | bf3dd19ae0644107116fe690fa86333b20021f76 (patch) | |
tree | 35b064d8b95afa65325b7bd8f8a1dc12d92d6b6f /func/overlord/command.py | |
parent | b2d8973c777e0c00192aeaa7e0a02b21675ba132 (diff) | |
download | func-bf3dd19ae0644107116fe690fa86333b20021f76.tar.gz func-bf3dd19ae0644107116fe690fa86333b20021f76.tar.xz func-bf3dd19ae0644107116fe690fa86333b20021f76.zip |
move command.py:BaseCommand() to it's own module, base_command.py
update the cmd_modules/* classes accordingly
also cleanup some imports in the cmd_modules/* classes
Diffstat (limited to 'func/overlord/command.py')
-rw-r--r-- | func/overlord/command.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/func/overlord/command.py b/func/overlord/command.py index 0fd0c7a..537bec5 100644 --- a/func/overlord/command.py +++ b/func/overlord/command.py @@ -289,23 +289,3 @@ class Command: c = c.parentCommand return c -DEFAULT_PORT = 51234 -class BaseCommand(Command): - """ wrapper class for commands with some convience functions, namely - getOverlord() for getting a overlord client api handle""" - - interactive = False - verbose=0 - port=DEFAULT_PORT - def getOverlord(self): - if not getattr(self, "server_spec"): - self.server_spec = self.parentCommand.server_spec - - - self.overlord_obj = client.Overlord(self.server_spec, - port=self.port, - interactive=self.interactive, - verbose=self.verbose, - config=self.config) - - |