Author: andar

Revision: 5903

Log:
        Use batch writing mode in the help command

Diff:
Modified: branches/1.2_RC/deluge/ui/console/commands/help.py
===================================================================
--- branches/1.2_RC/deluge/ui/console/commands/help.py  2009-10-31 19:49:14 UTC 
(rev 5902)
+++ branches/1.2_RC/deluge/ui/console/commands/help.py  2009-10-31 22:05:35 UTC 
(rev 5903)
@@ -64,10 +64,12 @@
                 self.console.write(cmd.__doc__ or 'No help for this command')
         else:
             max_length = max( len(k) for k in self._commands)
+            self.console.set_batch_write(True)
             for cmd in sorted(self._commands):
                 self.console.write("{!info!}" + cmd + "{!input!} - " + 
self._commands[cmd].__doc__ or '')
             self.console.write(" ")
             self.console.write('For help on a specific command, use "<command> 
--help"')
+            self.console.set_batch_write(False)
 
         return deferred
 

Modified: trunk/deluge/ui/console/commands/help.py
===================================================================
--- trunk/deluge/ui/console/commands/help.py    2009-10-31 19:49:14 UTC (rev 
5902)
+++ trunk/deluge/ui/console/commands/help.py    2009-10-31 22:05:35 UTC (rev 
5903)
@@ -64,10 +64,12 @@
                 self.console.write(cmd.__doc__ or 'No help for this command')
         else:
             max_length = max( len(k) for k in self._commands)
+            self.console.set_batch_write(True)
             for cmd in sorted(self._commands):
                 self.console.write("{!info!}" + cmd + "{!input!} - " + 
self._commands[cmd].__doc__ or '')
             self.console.write(" ")
             self.console.write('For help on a specific command, use "<command> 
--help"')
+            self.console.set_batch_write(False)
 
         return deferred
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to