From: Sapan Bhatia Date: Wed, 12 Aug 2009 14:49:00 +0000 (+0000) Subject: (no commit message) X-Git-Tag: sfa-0.9-1~97 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7890210eadbb59fa7cebdadf698ff2b20ba11d0a;p=sfa.git --- 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)