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

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 13 14:12:23 PDT 2012


Revision: 8854
          http://trac.macosforge.org/projects/calendarserver/changeset/8854
Author:   wsanchez at apple.com
Date:     2012-03-13 14:12:22 -0700 (Tue, 13 Mar 2012)
Log Message:
-----------
Last time I put in a placeholder like this (cmd_python), Glyph filled it in.  Maybe I'll get lucky twice.

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

Modified: CalendarServer/trunk/calendarserver/tools/shell/cmd.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell/cmd.py	2012-03-13 19:55:06 UTC (rev 8853)
+++ CalendarServer/trunk/calendarserver/tools/shell/cmd.py	2012-03-13 21:12:22 UTC (rev 8854)
@@ -347,6 +347,9 @@
 
         usage: exit
         """
+        if tokens:
+            raise UnknownArguments(tokens)
+
         self.exit()
 
 
@@ -356,6 +359,9 @@
 
         usage: python
         """
+        if tokens:
+            raise UnknownArguments(tokens)
+
         if not hasattr(self, "_interpreter"):
             # Bring in some helpful local variables.
             from txdav.common.datastore.sql_tables import schema
@@ -397,9 +403,26 @@
 
 
     def addOutput(self, bytes, async=False):
+        """
+        This is a delegate method, called by ManholeInterpreter.
+        """
         if async:
             self.terminal.write("... interrupted for Deferred ...\n")
         self.terminal.write(bytes)
         if async:
             self.terminal.write("\n")
             self.drawInputLine()
+
+
+    def cmd_sql(self, tokens):
+        """
+        Switch to an SQL prompt.
+
+        usage: sql
+        """
+        if tokens:
+            raise UnknownArguments(tokens)
+
+        raise NotImplementedError("")
+
+    cmd_sql.hidden = "Not implemented."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120313/21a4ef28/attachment.html>


More information about the calendarserver-changes mailing list