[CalendarServer-changes] [7670] CalendarServer/trunk/calendarserver/tools/shell.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 24 17:52:56 PDT 2011


Revision: 7670
          http://trac.macosforge.org/projects/calendarserver/changeset/7670
Author:   wsanchez at apple.com
Date:     2011-06-24 17:52:56 -0700 (Fri, 24 Jun 2011)
Log Message:
-----------
Add stub lineReceived()

Modified Paths:
--------------
    CalendarServer/trunk/calendarserver/tools/shell.py

Modified: CalendarServer/trunk/calendarserver/tools/shell.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell.py	2011-06-25 00:08:13 UTC (rev 7669)
+++ CalendarServer/trunk/calendarserver/tools/shell.py	2011-06-25 00:52:56 UTC (rev 7670)
@@ -96,6 +96,11 @@
     """
     Data store shell protocol.
     """
+
+    # FIXME:
+    # * Received lines are being echoed; find out why and stop it.
+    # * Backspace transposes characters in the terminal.
+
     ps = ("ds% ", "... ")
 
     def connectionMade(self):
@@ -144,7 +149,10 @@
     def handle_QUIT(self):
         self.terminal.loseConnection()
 
+    def lineReceived(self, line):
+        print "---> %s" % (line,)
 
+
 def main(argv=sys.argv, stderr=sys.stderr, reactor=None):
     """
     Do the export.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110624/558483f2/attachment.html>


More information about the calendarserver-changes mailing list