Browse Source

Remove the print_message and print_settings from the Xfrin spec and the handlers from the code. (As request in ticket 136)

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1682 e5f2f494-b856-4b98-b285-d166d9295462
Likun Zhang 15 years ago
parent
commit
bd2ec1db24
2 changed files with 2 additions and 30 deletions
  1. 1 14
      src/bin/xfrin/xfrin.py.in
  2. 1 16
      src/bin/xfrin/xfrin.spec.pre.in

+ 1 - 14
src/bin/xfrin/xfrin.py.in

@@ -329,13 +329,6 @@ class Xfrin():
         # TODO, process new config data
         # TODO, process new config data
         return create_answer(0)
         return create_answer(0)
 
 
-
-    def _print_settings(self):
-        full_config = self._cc.get_full_config()
-        for item in full_config:
-            print(item + ":" + str(full_config[item]))
-
-
     def shutdown(self):
     def shutdown(self):
         ''' shutdown the xfrin process. the thread which is doing xfrin should be 
         ''' shutdown the xfrin process. the thread which is doing xfrin should be 
         terminated.
         terminated.
@@ -352,13 +345,7 @@ class Xfrin():
         answer = create_answer(0)
         answer = create_answer(0)
         cmd = command
         cmd = command
         try:
         try:
-            if cmd == 'print_message':
-                print(args)
-
-            elif cmd == 'print_settings':
-                self._print_settings()  
-
-            elif cmd == 'shutdown':
+            if cmd == 'shutdown':
                 self._shutdown_event.set()
                 self._shutdown_event.set()
 
 
             elif cmd == 'retransfer':
             elif cmd == 'retransfer':

+ 1 - 16
src/bin/xfrin/xfrin.spec.pre.in

@@ -10,22 +10,7 @@
       }
       }
     ],
     ],
     "commands": [
     "commands": [
-      {
-        "command_name": "print_message",
-        "command_description": "Print the given message to stdout",
-        "command_args": [ {
-          "item_name": "message",
-          "item_type": "string",
-          "item_optional": False,
-          "item_default": ""
-        } ]
-      },
-      {
-        "command_name": "print_settings",
-        "command_description": "Print some_string and some_int to stdout",
-        "command_args": []
-      },
-      {
+     {
         'command_name': 'retransfer',
         'command_name': 'retransfer',
         "command_description": 'retransfer a single zone without checking zone serial number',
         "command_description": 'retransfer a single zone without checking zone serial number',
         'command_args': [ {
         'command_args': [ {