[SCM] Samba Shared Repository - branch master updated

Jelmer Vernooij jelmer at samba.org
Fri Dec 7 19:35:02 MST 2012


The branch, master has been updated
       via  b4ae73f samba-tool processes: Make the output a bit neater
      from  df0f59f winbind: Make the code more readable in trustdom_list_done().

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit b4ae73f58c48b3502147332ee4c72621867fffb3
Author: Ricky Nance <ricky.nance at weaubleau.k12.mo.us>
Date:   Fri Dec 7 18:43:16 2012 -0600

    samba-tool processes: Make the output a bit neater
    
    Reviewed-By: Jelmer Vernooij <jelmer at samba.org>
    
    Autobuild-User(master): Jelmer Vernooij <jelmer at samba.org>
    Autobuild-Date(master): Sat Dec  8 03:34:29 CET 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source4/scripting/python/samba/netcmd/processes.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/netcmd/processes.py b/source4/scripting/python/samba/netcmd/processes.py
index 751ab94..b25a2e4 100644
--- a/source4/scripting/python/samba/netcmd/processes.py
+++ b/source4/scripting/python/samba/netcmd/processes.py
@@ -62,17 +62,17 @@ class cmd_processes(Command):
         if name is not None:
             ids = msg_ctx.irpc_servers_byname(name)
             for server_id in ids:
-                print "%d\n" % server_id.pid
+                self.outf.write("%d\n" % server_id.pid)
         elif pid is not None:
             names = msg_ctx.irpc_all_servers()
             for name in names:
                 for server_id in name.ids:
                     if server_id.pid == int(pid):
-                        print "%s\n" % name.name
+                        self.outf.write("%s\n" % name.name)
         else:
             names = msg_ctx.irpc_all_servers()
+            self.outf.write(" Service:                PID \n")
+            self.outf.write("-----------------------------\n")
             for name in names:
-                print "%s: " % name.name
                 for server_id in name.ids:
-                    print "%d " % server_id.pid
-                print "\n"
+                    self.outf.write("%-16s      %6d\n" % (name.name, server_id.pid))


-- 
Samba Shared Repository


More information about the samba-cvs mailing list