[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Resolve all DOCDOCs and most XXXX006s.



Update of /home/minion/cvsroot/src/minion/lib/mixminion/directory
In directory moria.mit.edu:/tmp/cvs-serv16632/lib/mixminion/directory

Modified Files:
	DirMain.py ServerList.py 
Log Message:
Resolve all DOCDOCs and most XXXX006s.

Additionally, tweak the list-servers interface a bit.


Index: DirMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/directory/DirMain.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- DirMain.py	20 Nov 2003 04:03:47 -0000	1.18
+++ DirMain.py	24 Nov 2003 19:59:04 -0000	1.19
@@ -28,6 +28,7 @@
       update                   [Process updates for currently known servers]
       generate                 [Generate and sign a new directory]
       fingerprint              [Return the fingerprint of this directory's pk]
+      rebuildcache             [Rebuild a corrupted or removed identity cache]
 """.strip()
 
 def getDirectory():
@@ -91,7 +92,9 @@
     inbox.listNewPendingServers(sys.stdout)
 
 def cmd_rebuildcache(args):
-    """DOCDOC"""
+    """[Entry point] Reconstruct the ID cache from the contents of the
+       'servers' directory.
+    """
     if args:
         raise UIError("mixminion dir rebuildcache takes no arguments")
     d = getDirectory()
@@ -193,7 +196,7 @@
                 'generate' : cmd_generate,
                 'fingerprint' : cmd_fingerprint,
                 'rebuildcache' : cmd_rebuildcache
-                }
+                } 
 
 def main(cmd, args):
     """[Entry point] Multiplex among subcommands."""

Index: ServerList.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/directory/ServerList.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- ServerList.py	20 Nov 2003 04:03:47 -0000	1.42
+++ ServerList.py	24 Nov 2003 19:59:04 -0000	1.43
@@ -247,9 +247,11 @@
         """Generate and sign a new directory, to be effective from <startAt>
            through <endAt>.  It includes all servers that are valid at
            any time between <startAt> and <endAt>+<extraTime>.  The directory
-           is signed with <identityKey>
+           is signed with <identityKey>.  
 
-           DOCDOC badServers, excludeServers
+           Any servers whose nicknames appear in 'badServers' are marked as
+           not recommended; any servers whose nicknames appear in
+           'excludeServers' are left off the directory entirely.
         """
         try:
             self._lock()