From 7890210eadbb59fa7cebdadf698ff2b20ba11d0a Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Wed, 12 Aug 2009 14:49:00 +0000 Subject: [PATCH] --- sfatables/{commands => }/commands.py | 0 sfatables/commands/Add.py | 18 ++++++++++++++++++ sfatables/commands/Delete.py | 18 ++++++++++++++++++ sfatables/commands/List.py | 18 ++++++++++++++++++ sfatables/commands/SetDefault.py | 18 ++++++++++++++++++ 5 files changed, 72 insertions(+) rename sfatables/{commands => }/commands.py (100%) create mode 100644 sfatables/commands/Add.py create mode 100644 sfatables/commands/Delete.py create mode 100644 sfatables/commands/List.py create mode 100644 sfatables/commands/SetDefault.py diff --git a/sfatables/commands/commands.py b/sfatables/commands.py similarity index 100% rename from sfatables/commands/commands.py rename to sfatables/commands.py diff --git a/sfatables/commands/Add.py b/sfatables/commands/Add.py new file mode 100644 index 00000000..063caab9 --- /dev/null +++ b/sfatables/commands/Add.py @@ -0,0 +1,18 @@ +import os, time + +class Command: + options = [] + help = '' + key='' + matches = False + targets = False + + def __init__(self): + return + + def call(self): + # Override this function + return True + + def __call__(self, option, opt_str, value, parser, *args, **kwargs): + return self.call(option) diff --git a/sfatables/commands/Delete.py b/sfatables/commands/Delete.py new file mode 100644 index 00000000..063caab9 --- /dev/null +++ b/sfatables/commands/Delete.py @@ -0,0 +1,18 @@ +import os, time + +class Command: + options = [] + help = '' + key='' + matches = False + targets = False + + def __init__(self): + return + + def call(self): + # Override this function + return True + + def __call__(self, option, opt_str, value, parser, *args, **kwargs): + return self.call(option) diff --git a/sfatables/commands/List.py b/sfatables/commands/List.py new file mode 100644 index 00000000..063caab9 --- /dev/null +++ b/sfatables/commands/List.py @@ -0,0 +1,18 @@ +import os, time + +class Command: + options = [] + help = '' + key='' + matches = False + targets = False + + def __init__(self): + return + + def call(self): + # Override this function + return True + + def __call__(self, option, opt_str, value, parser, *args, **kwargs): + return self.call(option) diff --git a/sfatables/commands/SetDefault.py b/sfatables/commands/SetDefault.py new file mode 100644 index 00000000..063caab9 --- /dev/null +++ b/sfatables/commands/SetDefault.py @@ -0,0 +1,18 @@ +import os, time + +class Command: + options = [] + help = '' + key='' + matches = False + targets = False + + def __init__(self): + return + + def call(self): + # Override this function + return True + + def __call__(self, option, opt_str, value, parser, *args, **kwargs): + return self.call(option) -- 2.47.0