[svn] commit: r1682 - in /trunk/src/bin/xfrin: xfrin.py.in xfrin.spec.pre.in

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Apr 7 03:47:43 UTC 2010


Author: zhanglikun
Date: Wed Apr  7 03:47:43 2010
New Revision: 1682

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

Modified:
    trunk/src/bin/xfrin/xfrin.py.in
    trunk/src/bin/xfrin/xfrin.spec.pre.in

Modified: trunk/src/bin/xfrin/xfrin.py.in
==============================================================================
--- trunk/src/bin/xfrin/xfrin.py.in (original)
+++ trunk/src/bin/xfrin/xfrin.py.in Wed Apr  7 03:47:43 2010
@@ -329,13 +329,6 @@
         # TODO, process new config data
         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):
         ''' shutdown the xfrin process. the thread which is doing xfrin should be 
         terminated.
@@ -352,13 +345,7 @@
         answer = create_answer(0)
         cmd = command
         try:
-            if cmd == 'print_message':
-                print(args)
-
-            elif cmd == 'print_settings':
-                self._print_settings()  
-
-            elif cmd == 'shutdown':
+            if cmd == 'shutdown':
                 self._shutdown_event.set()
 
             elif cmd == 'retransfer':

Modified: trunk/src/bin/xfrin/xfrin.spec.pre.in
==============================================================================
--- trunk/src/bin/xfrin/xfrin.spec.pre.in (original)
+++ trunk/src/bin/xfrin/xfrin.spec.pre.in Wed Apr  7 03:47:43 2010
@@ -10,22 +10,7 @@
       }
     ],
     "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_description": 'retransfer a single zone without checking zone serial number',
         'command_args': [ {




More information about the bind10-changes mailing list