better name for ui status method
authorAlexander Solovyov <piranha@piranha.org.ua>
Thu, 02 Jul 2009 21:45:38 +0300
changeset 28 1a90a706e10d
parent 27 3908a489c02e
child 29 d9a2fc1e5e90
better name for ui status method
README
fancycmd.py
--- a/README	Thu Jul 02 21:36:50 2009 +0300
+++ b/README	Thu Jul 02 21:45:38 2009 +0300
@@ -103,7 +103,7 @@
 instance to output instead of directly printing messages, which is possible by
 using one of following methods:
 
-  - ``UI.status`` prints by default, but hides output with quiet option
+  - ``UI.info`` prints by default, but hides output with quiet option
   - ``UI.note`` prints only if verbose option supplied
   - ``UI.write`` prints in any case
   - ``UI.warn`` prints to stderr (in any case)
--- a/fancycmd.py	Thu Jul 02 21:36:50 2009 +0300
+++ b/fancycmd.py	Thu Jul 02 21:45:38 2009 +0300
@@ -347,7 +347,7 @@
 
     You have three methods to handle program messages output:
 
-      - ``UI.status`` is printed by default, but hidden with quiet option
+      - ``UI.info`` is printed by default, but hidden with quiet option
       - ``UI.note`` is printed only if output is verbose
       - ``UI.write`` is printed in any case
 
@@ -370,7 +370,7 @@
         for m in messages:
             sys.stderr.write(m)
 
-    status = lambda self, *m: not self.quiet and self.write(*m)
+    info = lambda self, *m: not self.quiet and self.write(*m)
     note = lambda self, *m: self.verbose and self.write(*m)
 
 # Command exceptions