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

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 18 14:39:16 PST 2011


Revision: 8336
          http://trac.macosforge.org/projects/calendarserver/changeset/8336
Author:   wsanchez at apple.com
Date:     2011-11-18 14:39:15 -0800 (Fri, 18 Nov 2011)
Log Message:
-----------
emulate none

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

Modified: CalendarServer/trunk/calendarserver/tools/shell.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/shell.py	2011-11-18 22:34:38 UTC (rev 8335)
+++ CalendarServer/trunk/calendarserver/tools/shell.py	2011-11-18 22:39:15 UTC (rev 8336)
@@ -344,7 +344,8 @@
     def cmd_emulate(self, tokens):
         """
         Emulate editor behavior.
-        The only correct argument is "emacs".
+        The only correct argument is: emacs
+        Other choices include: vi, none
 
         usage: emulate editor
         """
@@ -362,6 +363,9 @@
         elif editor == "vi":
             self.terminal.write("Seriously?!?!?")
             self.emulate = EMULATE_VI
+        elif editor == "none":
+            self.terminal.write("Disabling emulation.")
+            self.emulate = None
         else:
             raise UsageError("Unknown editor: %s" % (editor,))
         self.terminal.nextLine()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111118/2436a203/attachment.html>


More information about the calendarserver-changes mailing list