(no commit message)
authorSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 12 Aug 2009 14:49:00 +0000 (14:49 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Wed, 12 Aug 2009 14:49:00 +0000 (14:49 +0000)
sfatables/commands.py [moved from sfatables/commands/commands.py with 100% similarity]
sfatables/commands/Add.py [new file with mode: 0644]
sfatables/commands/Delete.py [new file with mode: 0644]
sfatables/commands/List.py [new file with mode: 0644]
sfatables/commands/SetDefault.py [new file with mode: 0644]

diff --git a/sfatables/commands/Add.py b/sfatables/commands/Add.py
new file mode 100644 (file)
index 0000000..063caab
--- /dev/null
@@ -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 (file)
index 0000000..063caab
--- /dev/null
@@ -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 (file)
index 0000000..063caab
--- /dev/null
@@ -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 (file)
index 0000000..063caab
--- /dev/null
@@ -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)